23 #ifndef BAGEL_BAGLIB_VAR_H 24 #define BAGEL_BAGLIB_VAR_H 26 #include "bagel/baglib/parse_object.h" 27 #include "bagel/boflib/string.h" 28 #include "bagel/boflib/list.h" 34 enum VARTYPE { STRING = 0, NUMBER = 1, BOOLEAN = 2 };
67 return _xVarType == NUMBER;
70 return _xVarType == BOOLEAN;
73 return _xVarType == STRING;
84 bool isFrozen()
const {
94 void setValue(
int nVal);
95 void setBoolValue(
bool bVal);
96 void setGlobal(
bool bVal =
true) {
99 void setConstant(
bool bVal =
true) {
102 void setReference(
bool bVal =
true) {
105 void setTimer(
bool bVal =
true) {
108 void setRandom(
bool bVal =
true) {
111 void setFreeze(
bool bVal =
true) {
128 #define VAR_HASH_TABLE_SIZE 131 132 static int nVarMngrs;
138 static void initialize();
140 ErrorCode registerVariable(
CBagVar *pVar);
141 ErrorCode unRegisterVariable(
CBagVar *pVar);
142 ErrorCode updateRegistration();
143 ErrorCode releaseVariables(
bool bIncludeGlobals =
true);
145 ErrorCode incrementTimers();
151 return _xVarList.getCount();
Definition: ifstream.h:31
Definition: parse_object.h:45