20 #include "hurricane/Commons.h" 21 #include "crlcore/SearchPath.h" 38 static const char* getEnv (
const char* variable,
const char* defaultValue );
47 inline const std::string&
getIN_LO ()
const;
48 inline const std::string&
getIN_PH ()
const;
49 inline const std::string&
getOUT_LO ()
const;
50 inline const std::string&
getOUT_PH ()
const;
51 inline const std::string&
getPOWER ()
const;
52 inline const std::string&
getGROUND ()
const;
53 inline const std::string&
getCLOCK ()
const;
55 inline const std::string&
getPad ()
const;
60 bool isPOWER (
const char* name )
const;
61 bool isGROUND (
const char* name )
const;
62 bool isCLOCK (
const char* name )
const;
64 bool isPad (
const char* name )
const;
70 inline void setIN_LO (
const char* value );
71 inline void setIN_PH (
const char* value );
72 inline void setOUT_LO (
const char* value );
73 inline void setOUT_PH (
const char* value );
78 void setPad (
const char* value );
84 void toJson ( JsonWriter* )
const;
85 inline std::string _getTypeName ()
const;
86 std::string _getString ()
const;
87 Record* _getRecord ()
const;
90 std::string _CORIOLIS_TOP;
91 std::string _displayStyle;
101 std::string _BLOCKAGE;
104 regex_t* _PowerRegex;
105 regex_t* _GroundRegex;
106 regex_t* _ClockRegex;
107 regex_t* _BlockageRegex;
110 void _setRegex ( regex_t*& regex,
const std::string& pattern,
const char* name );
137 inline std::string Environment::_getTypeName ()
const {
return "Environment"; }
143 class JsonEnvironment :
public JsonObject {
145 static void initialize ();
146 JsonEnvironment (
unsigned long flags );
147 virtual std::string getTypeName ()
const;
148 virtual JsonEnvironment* clone (
unsigned long flags )
const;
149 virtual void toData ( JsonStack& );
void setCATALOG(const char *value)
Definition: Environment.h:136
bool isBLOCKAGE(const char *name) const
Definition: Environment.h:35
void setSCALE_X(long value)
Definition: Environment.h:131
void setBLOCKAGE(const char *value)
bool isCLOCK(const char *name) const
bool isPOWER(const char *name) const
const std::string & getCATALOG() const
Definition: Environment.h:127
SearchPath & getLIBRARIES()
Definition: Environment.h:128
void setGROUND(const char *value)
const std::string & getIN_PH() const
Definition: Environment.h:119
const std::string & getPad() const
Definition: Environment.h:126
void setWORKING_LIBRARY(const char *value)
std::string getPrint() const
Definition: Environment.h:35
Definition: Environment.h:35
void setPad(const char *value)
const std::string & getOUT_LO() const
Definition: Environment.h:120
const std::string & getDISPLAY() const
void addSYSTEM_LIBRARY(const char *value, const char *libName, unsigned int mode=Append)
void setOUT_LO(const char *value)
Definition: Environment.h:134
const std::string & getGROUND() const
Definition: Environment.h:123
bool isPad(const char *name) const
const std::string & getOUT_PH() const
Definition: Environment.h:121
void setPOWER(const char *value)
void setIN_PH(const char *value)
Definition: Environment.h:133
bool isGROUND(const char *name) const
const std::string & getBLOCKAGE() const
Definition: Environment.h:125
const std::string & getCORIOLIS_TOP() const
Definition: Environment.h:115
void setIN_LO(const char *value)
Definition: Environment.h:132
const std::string & getPOWER() const
Definition: Environment.h:122
An ordered list of search pathes.
Definition: SearchPath.h:32
const std::string & getCLOCK() const
Definition: Environment.h:124
long getSCALE_X() const
Definition: Environment.h:117
const std::string & getDisplayStyle() const
Definition: Environment.h:116
void setOUT_PH(const char *value)
Definition: Environment.h:135
const std::string & getIN_LO() const
Definition: Environment.h:118
AddMode
Definition: Environment.h:35
Holds all the Alliance environment variables.
Definition: Environment.h:33
std::string getLIBRARYPath(size_t i)
void setCLOCK(const char *value)
void setDisplayStyle(const char *)
Definition: Environment.h:130
The namespace of Coriolis Core.
Definition: Environment.h:24
void setDISPLAY(const char *value)