CMS 3D CMS Logo

IgEnvsElement.h

Go to the documentation of this file.
00001 #ifndef IGUANA_FRAMEWORK_IG_ENVS_ELEMENT_H
00002 # define IGUANA_FRAMEWORK_IG_ENVS_ELEMENT_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "Iguana/Framework/interface/IgStateElement.h"
00007 # include <vector>
00008 # include <string>
00009 
00010 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00011 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00012 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00013 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00014 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00015 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00016 
00017 class IGUANA_FRAMEWORK_API IgEnvsElement : public IgStateElement
00018 {
00019     IG_DECLARE_STATE_ELEMENT (IgEnvsElement);
00020 public:
00021     IgEnvsElement (IgState* state);
00022     // implicit copy constructor
00023     // implicit assignment operator
00024     // implicit destructor
00025     
00026     bool        getEnv(const std::string& name, std::string& value) const;
00027     bool        getEnv(const std::string& name, std::vector<std::string>& value,
00028                     char separator = ':') const;
00029     bool        getEnv(const std::string& name, int& value) const;
00030     bool        getEnv(const std::string& name, long& value) const;
00031     bool        getEnv(const std::string& name, unsigned int& value) const;
00032     bool        getEnv(const std::string& name, unsigned long& value) const;
00033     bool        getEnv(const std::string& name, float& value) const;
00034     bool        getEnv(const std::string& name, double& value) const;
00035     
00036 private:
00037     IgState     *m_state;       //< State object.
00038 };
00039 
00040 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00041 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00042 
00043 #endif // IGUANA_FRAMEWORK_IG_ENVS_ELEMENT_H

Generated on Tue Jun 9 17:38:15 2009 for CMSSW by  doxygen 1.5.4