psana/src/Configurable.cpp

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: Configurable.cpp 5435 2013-02-13 01:02:07Z salnikov@SLAC.STANFORD.EDU $
00004 //
00005 // Description:
00006 //      Class Configurable...
00007 //
00008 // Author List:
00009 //      Andrei Salnikov
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------------
00014 // This Class's Header --
00015 //-----------------------
00016 #include "psana/Configurable.h"
00017 
00018 //-----------------
00019 // C/C++ Headers --
00020 //-----------------
00021 
00022 //-------------------------------
00023 // Collaborating Class Headers --
00024 //-------------------------------
00025 
00026 //-----------------------------------------------------------------------
00027 // Local Macros, Typedefs, Structures, Unions and Forward Declarations --
00028 //-----------------------------------------------------------------------
00029 
00030 //              ----------------------------------------
00031 //              -- Public Function Member Definitions --
00032 //              ----------------------------------------
00033 
00034 namespace psana {
00035 
00036 //----------------
00037 // Constructors --
00038 //----------------
00039 Configurable::Configurable (const std::string& name)
00040   : m_name(name)
00041   , m_className(name)
00042   , m_context(Context::get())
00043 {
00044   // get class name from module name
00045   std::string::size_type p = m_className.find(':');
00046   if (p != std::string::npos) {
00047     m_className.erase(p);
00048   }
00049 }
00050 
00051 //--------------
00052 // Destructor --
00053 //--------------
00054 Configurable::~Configurable ()
00055 {
00056 }
00057 
00058 } // namespace psana

Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7