Changeset 1610
- Timestamp:
- Jun 19, 2008, 4:10:27 AM (16 years ago)
- Location:
- code/branches/core3/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/ConfigValueContainer.cc
r1596 r1610 60 60 this->varname_ = varname; 61 61 this->callback_ = 0; 62 this->bContainerIsNew_ = true; 63 this->bDoInitialCallback_ = false; 64 this->bAddedDescription_ = false; 62 65 63 66 this->value_ = defvalue; 64 this->bAddedDescription_ = false;65 67 this->bIsVector_ = false; 66 68 … … 82 84 this->sectionname_ = identifier->getName(); 83 85 this->varname_ = varname; 86 this->callback_ = 0; 87 this->bContainerIsNew_ = true; 88 this->bDoInitialCallback_ = false; 89 this->bAddedDescription_ = false; 84 90 85 91 this->valueVector_ = defvalue; 86 this->bAddedDescription_ = false;87 92 this->bIsVector_ = true; 88 93 -
code/branches/core3/src/core/ConfigValueContainer.h
r1596 r1610 103 103 ConfigValueContainer& getValue(T* value, C* object) 104 104 { 105 if (this->callback_ && object) 106 { 105 std::cout << "start: " << this->getName() << std::endl; 106 if ((this->callback_ && object) || this->bContainerIsNew_) 107 { 108 if (this->bContainerIsNew_) 109 this->bContainerIsNew_ = false; 110 107 111 T temp = *value; 108 112 this->value_.getValue(value); 109 113 if ((*value) != temp) 110 this->callback_->call(object); 114 { 115 if (this->callback_ && object) 116 this->callback_->call(object); 117 else 118 this->bDoInitialCallback_ = true; 119 } 111 120 } 112 121 else … … 114 123 this->value_.getValue(value); 115 124 } 125 std::cout << "end" << std::endl; 116 126 return *this; 117 127 } … … 121 131 ConfigValueContainer& getValue(std::vector<T>* value, C* object) 122 132 { 123 if (this->callback_ && object) 124 { 133 if ((this->callback_ && object) || this->bContainerIsNew_) 134 { 135 if (this->bContainerIsNew_) 136 this->bContainerIsNew_ = false; 137 125 138 std::vector<T> temp = *value; 126 127 139 value->clear(); 128 140 for (unsigned int i = 0; i < this->valueVector_.size(); ++i) … … 131 143 if (value->size() != temp.size()) 132 144 { 133 this->callback_->call(object); 145 if (this->callback_ && object) 146 this->callback_->call(object); 147 else 148 this->bDoInitialCallback_ = true; 134 149 } 135 150 else … … 139 154 if ((*value)[i] != temp[i]) 140 155 { 141 this->callback_->call(object); 156 if (this->callback_ && object) 157 this->callback_->call(object); 158 else 159 this->bDoInitialCallback_ = true; 142 160 break; 143 161 } … … 172 190 173 191 template <class T> 174 inline ConfigValueContainer& callback( void (T::*function) (void))192 inline ConfigValueContainer& callback(T* object, void (T::*function) (void)) 175 193 { 176 194 if (!this->callback_) 195 { 177 196 this->callback_ = new ConfigValueCallback<T>(function); 197 198 if (this->bDoInitialCallback_) 199 { 200 this->bDoInitialCallback_ = false; 201 this->callback_->call(object); 202 } 203 } 204 178 205 return (*this); 179 206 } … … 215 242 LanguageEntryLabel description_; //!< The description 216 243 ConfigValueCallbackBase* callback_; //!< A callback function to call after getValue if the value changed 244 245 bool bContainerIsNew_; //!< True if it's the first time getValue() gets called 246 bool bDoInitialCallback_; //!< True if the callback should be called as soon as it gets created 217 247 }; 218 248 } -
code/branches/core3/src/core/Core.cc
r1596 r1610 96 96 void Core::setConfigValues() 97 97 { 98 SetConfigValue(softDebugLevelConsole_, 3).description("The maximal level of debug output shown in the console").callback( &Core::debugLevelChanged);99 SetConfigValue(softDebugLevelLogfile_, 3).description("The maximal level of debug output shown in the logfile").callback( &Core::debugLevelChanged);100 SetConfigValue(softDebugLevelShell_, 1).description("The maximal level of debug output shown in the ingame shell").callback( &Core::debugLevelChanged);101 SetConfigValue(language_, Language::getLanguage().defaultLanguage_).description("The language of the ingame text").callback( &Core::languageChanged);98 SetConfigValue(softDebugLevelConsole_, 3).description("The maximal level of debug output shown in the console").callback(this, &Core::debugLevelChanged); 99 SetConfigValue(softDebugLevelLogfile_, 3).description("The maximal level of debug output shown in the logfile").callback(this, &Core::debugLevelChanged); 100 SetConfigValue(softDebugLevelShell_, 1).description("The maximal level of debug output shown in the ingame shell").callback(this, &Core::debugLevelChanged); 101 SetConfigValue(language_, Language::getLanguage().defaultLanguage_).description("The language of the ingame text").callback(this, &Core::languageChanged); 102 102 } 103 103 -
code/branches/core3/src/core/Identifier.cc
r1596 r1610 195 195 196 196 /** 197 @brief Tells the container to which Identifier it belongs to.198 */199 void Identifier::addXMLPortParamContainer(const std::string& paramname, XMLPortParamContainer* container)200 {201 container->setIdentifier(this);202 }203 204 /**205 197 @brief Returns true, if the Identifier is at least of the given type. 206 198 @param identifier The identifier to compare with -
code/branches/core3/src/core/Identifier.h
r1596 r1610 206 206 ConfigValueContainer* getLowercaseConfigValueContainer(const std::string& varname); 207 207 208 virtual void addXMLPortParamContainer(const std::string& paramname, XMLPortParamContainer* container) ;208 virtual void addXMLPortParamContainer(const std::string& paramname, XMLPortParamContainer* container) = 0; 209 209 virtual XMLPortParamContainer* getXMLPortParamContainer(const std::string& paramname) = 0; 210 210 … … 461 461 void ClassIdentifier<T>::addXMLPortParamContainer(const std::string& paramname, XMLPortParamContainer* container) 462 462 { 463 Identifier::addXMLPortParamContainer(paramname, container);464 463 this->xmlportParamContainers_[paramname] = (XMLPortClassParamContainer<class O>*)container; 465 464 } -
code/branches/core3/src/core/Shell.cc
r1596 r1610 90 90 void Shell::setConfigValues() 91 91 { 92 SetConfigValue(maxHistoryLength_, 100).callback( &Shell::commandHistoryLengthChanged);93 SetConfigValue(historyOffset_, 0).callback( &Shell::commandHistoryOffsetChanged);92 SetConfigValue(maxHistoryLength_, 100).callback(this, &Shell::commandHistoryLengthChanged); 93 SetConfigValue(historyOffset_, 0).callback(this, &Shell::commandHistoryOffsetChanged); 94 94 SetConfigValueVector(commandHistory_, std::vector<std::string>()); 95 95 } -
code/branches/core3/src/core/XMLPort.h
r1592 r1610 42 42 43 43 #define XMLPortParam(classname, paramname, loadfunction, savefunction, xmlelement, mode) \ 44 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&classname::savefunction), std::string( #classname ) + "::" + #savefunction), xmlelement, mode)44 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&classname::savefunction), std::string( #classname ) + "::" + #savefunction), xmlelement, mode) 45 45 #define XMLPortParamTemplate(classname, paramname, loadfunction, savefunction, xmlelement, mode, ...) \ 46 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor< __VA_ARGS__ >(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&classname::savefunction), std::string( #classname ) + "::" + #savefunction), xmlelement, mode)46 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor< __VA_ARGS__ >(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&classname::savefunction), std::string( #classname ) + "::" + #savefunction), xmlelement, mode) 47 47 48 48 #define XMLPortParamLoadOnly(classname, paramname, loadfunction, xmlelement, mode) \ 49 XMLPortParamGeneric(xmlcontainer##loadfunction##0, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), 0, xmlelement, mode)49 XMLPortParamGeneric(xmlcontainer##loadfunction##0, classname, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), 0, xmlelement, mode) 50 50 #define XMLPortParamLoadOnlyTemplate(classname, paramname, loadfunction, xmlelement, mode, ...) \ 51 XMLPortParamGeneric(xmlcontainer##loadfunction##0, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor< __VA_ARGS__ >(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), 0, xmlelement, mode)52 53 #define XMLPortParamExtern(classname, object, paramname, loadfunction, savefunction, xmlelement, mode) \54 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, object, paramname, orxonox::createExecutor(orxonox::createFunctor(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&classname::savefunction), std::string( #classname) + "::" + #savefunction), xmlelement, mode);55 #define XMLPortParamExternTemplate(classname, object, paramname, loadfunction, savefunction, xmlelement, mode, ...) \56 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, object, paramname, orxonox::createExecutor(orxonox::createFunctor< __VA_ARGS__ >(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&classname::savefunction), std::string( #classname) + "::" + #savefunction), xmlelement, mode);57 58 #define XMLPortParamGeneric(containername, classname, object , paramname, loadexecutor, saveexecutor, xmlelement, mode) \59 orxonox::XMLPortClassParamContainer< classname>* containername = (orxonox::XMLPortClassParamContainer<classname>*)(this->getIdentifier()->getXMLPortParamContainer(paramname)); \51 XMLPortParamGeneric(xmlcontainer##loadfunction##0, classname, classname, this, paramname, orxonox::createExecutor(orxonox::createFunctor< __VA_ARGS__ >(&classname::loadfunction), std::string( #classname ) + "::" + #loadfunction), 0, xmlelement, mode) 52 53 #define XMLPortParamExtern(classname, externclass, object, paramname, loadfunction, savefunction, xmlelement, mode) \ 54 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, externclass, object, paramname, orxonox::createExecutor(orxonox::createFunctor(&externclass::loadfunction), std::string( #externclass ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&externclass::savefunction), std::string( #externclass ) + "::" + #savefunction), xmlelement, mode); 55 #define XMLPortParamExternTemplate(classname, externclass, object, paramname, loadfunction, savefunction, xmlelement, mode, ...) \ 56 XMLPortParamGeneric(xmlcontainer##loadfunction##savefunction, classname, externclass, object, paramname, orxonox::createExecutor(orxonox::createFunctor< __VA_ARGS__ >(&externclass::loadfunction), std::string( #externclass ) + "::" + #loadfunction), orxonox::createExecutor(orxonox::createFunctor(&externclass::savefunction), std::string( #externclass ) + "::" + #savefunction), xmlelement, mode); 57 58 #define XMLPortParamGeneric(containername, classname, objectclass, object, paramname, loadexecutor, saveexecutor, xmlelement, mode) \ 59 orxonox::XMLPortClassParamContainer<objectclass>* containername = (orxonox::XMLPortClassParamContainer<objectclass>*)(ClassIdentifier<classname>::getIdentifier()->getXMLPortParamContainer(paramname)); \ 60 60 if (!containername) \ 61 61 { \ 62 containername = new orxonox::XMLPortClassParamContainer< classname>(std::string(paramname), loadexecutor, saveexecutor); \63 this->getIdentifier()->addXMLPortParamContainer(paramname, containername); \62 containername = new orxonox::XMLPortClassParamContainer<objectclass>(std::string(paramname), ClassIdentifier<classname>::getIdentifier(), loadexecutor, saveexecutor); \ 63 ClassIdentifier<classname>::getIdentifier()->addXMLPortParamContainer(paramname, containername); \ 64 64 } \ 65 containername->port( object, xmlelement, mode)65 containername->port((BaseObject*)this, object, xmlelement, mode) 66 66 67 67 … … 72 72 73 73 #define XMLPortObjectGeneric(containername, classname, objectclass, sectionname, loadexecutor, saveexecutor, xmlelement, mode, bApplyLoaderMask, bLoadBefore) \ 74 orxonox::XMLPortClassObjectContainer<classname, objectclass>* containername = (orxonox::XMLPortClassObjectContainer<classname, objectclass>*)( this->getIdentifier()->getXMLPortObjectContainer(sectionname)); \74 orxonox::XMLPortClassObjectContainer<classname, objectclass>* containername = (orxonox::XMLPortClassObjectContainer<classname, objectclass>*)(ClassIdentifier<classname>::getIdentifier()->getXMLPortObjectContainer(sectionname)); \ 75 75 if (!containername) \ 76 76 { \ 77 containername = new orxonox::XMLPortClassObjectContainer<classname, objectclass>(std::string(sectionname), loadexecutor, saveexecutor, bApplyLoaderMask, bLoadBefore); \78 this->getIdentifier()->addXMLPortObjectContainer(sectionname, containername); \77 containername = new orxonox::XMLPortClassObjectContainer<classname, objectclass>(std::string(sectionname), ClassIdentifier<classname>::getIdentifier(), loadexecutor, saveexecutor, bApplyLoaderMask, bLoadBefore); \ 78 ClassIdentifier<classname>::getIdentifier()->addXMLPortObjectContainer(sectionname, containername); \ 79 79 } \ 80 80 containername->port(this, xmlelement, mode) … … 103 103 inline const std::string& getName() const 104 104 { return this->paramname_; } 105 inline void setIdentifier(Identifier* identifier)106 { this->identifier_ = identifier; }107 105 108 106 virtual XMLPortParamContainer& description(const std::string description) = 0; … … 120 118 ParseResult parseResult_; 121 119 Identifier* identifier_; 120 BaseObject* owner_; 122 121 }; 123 122 … … 133 132 134 133 public: 135 XMLPortClassParamContainer(const std::string paramname, ExecutorMember<T>* loadexecutor, ExecutorMember<T>* saveexecutor)134 XMLPortClassParamContainer(const std::string paramname, Identifier* identifier, ExecutorMember<T>* loadexecutor, ExecutorMember<T>* saveexecutor) 136 135 { 137 136 this->paramname_ = paramname; 137 this->identifier_ = identifier; 138 138 this->loadexecutor_ = loadexecutor; 139 139 this->saveexecutor_ = saveexecutor; 140 140 } 141 141 142 XMLPortParamContainer& port(T* object, Element& xmlelement, XMLPort::Mode mode) 143 { 142 XMLPortParamContainer& port(BaseObject* owner, T* object, Element& xmlelement, XMLPort::Mode mode) 143 { 144 this->owner_ = owner; 144 145 this->parseParams_.object = object; 145 146 this->parseParams_.xmlelement = &xmlelement; … … 153 154 if ((attribute.size() > 0) || (this->loadexecutor_->allDefaultValuesSet())) 154 155 { 155 COUT(5) << ((BaseObject*)object)->getLoaderIndentation() << "Loading parameter " << this->paramname_ << " in " << this->identifier_->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")." << std::endl << ((BaseObject*)object)->getLoaderIndentation();156 COUT(5) << this->owner_->getLoaderIndentation() << "Loading parameter " << this->paramname_ << " in " << this->identifier_->getName() << " (objectname " << this->owner_->getName() << ")." << std::endl << this->owner_->getLoaderIndentation(); 156 157 if (this->loadexecutor_->parse(object, attribute, ",")) 157 158 this->parseResult_ = PR_finished; … … 163 164 { 164 165 COUT(1) << std::endl; 165 COUT(1) << "An error occurred in XMLPort.h while loading attribute '" << this->paramname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << ((BaseObject*)object)->getLevelfile() << ":" << std::endl;166 COUT(1) << "An error occurred in XMLPort.h while loading attribute '" << this->paramname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << this->owner_->getName() << ") in " << this->owner_->getLevelfile() << ":" << std::endl; 166 167 COUT(1) << ex.what() << std::endl; 167 168 } … … 178 179 } 179 180 180 XMLPortParamContainer& port( const ParseParams& parseParams)181 { 182 return this->port( parseParams.object, *parseParams.xmlelement, parseParams.mode);181 XMLPortParamContainer& port(BaseObject* owner, const ParseParams& parseParams) 182 { 183 return this->port(owner, parseParams.object, *parseParams.xmlelement, parseParams.mode); 183 184 } 184 185 … … 186 187 { 187 188 if (result == PR_waiting_for_default_values) 188 return this->port( params);189 return this->port(this->owner_, params); 189 190 else 190 191 return (*this); … … 262 263 bool bApplyLoaderMask_; 263 264 bool bLoadBefore_; 265 Identifier* identifier_; 264 266 }; 265 267 … … 268 270 { 269 271 public: 270 XMLPortClassObjectContainer(const std::string sectionname, ExecutorMember<T>* loadexecutor, ExecutorMember<T>* saveexecutor, bool bApplyLoaderMask, bool bLoadBefore)272 XMLPortClassObjectContainer(const std::string sectionname, Identifier* identifier, ExecutorMember<T>* loadexecutor, ExecutorMember<T>* saveexecutor, bool bApplyLoaderMask, bool bLoadBefore) 271 273 { 272 274 this->sectionname_ = sectionname; 275 this->identifier_ = identifier; 273 276 this->loadexecutor_ = loadexecutor; 274 277 this->saveexecutor_ = saveexecutor; … … 310 313 { 311 314 newObject->XMLPort(*child, XMLPort::LoadObject); 312 COUT(4) << ((BaseObject*)object)->getLoaderIndentation() << "assigning " << child->Value() << " (objectname " << newObject->getName() << ") to " << object->getIdentifier()->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")" << std::endl;315 COUT(4) << ((BaseObject*)object)->getLoaderIndentation() << "assigning " << child->Value() << " (objectname " << newObject->getName() << ") to " << this->identifier_->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")" << std::endl; 313 316 } 314 317 else 315 318 { 316 COUT(4) << ((BaseObject*)object)->getLoaderIndentation() << "assigning " << child->Value() << " (object not yet loaded) to " << object->getIdentifier()->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")" << std::endl;319 COUT(4) << ((BaseObject*)object)->getLoaderIndentation() << "assigning " << child->Value() << " (object not yet loaded) to " << this->identifier_->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")" << std::endl; 317 320 } 318 321 … … 341 344 { 342 345 COUT(1) << std::endl; 343 COUT(1) << "An error occurred in XMLPort.h while loading a '" << Class(O)->getName() << "' in '" << this->sectionname_ << "' of '" << object->getIdentifier()->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << object->getLevelfile() << ":" << std::endl;346 COUT(1) << "An error occurred in XMLPort.h while loading a '" << Class(O)->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << object->getLevelfile() << ":" << std::endl; 344 347 COUT(1) << ex.what() << std::endl; 345 348 } -
code/branches/core3/src/orxonox/GraphicsEngine.cc
r1596 r1610 97 97 SetConfigValue(ogreLogLevelCritical_, 2).description("Corresponding orxonox debug level for ogre Critical"); 98 98 99 SetConfigValue(detailLevelParticle_, 2).description("O: off, 1: low, 2: normal, 3: high").callback( &GraphicsEngine::detailLevelParticleChanged);99 SetConfigValue(detailLevelParticle_, 2).description("O: off, 1: low, 2: normal, 3: high").callback(this, &GraphicsEngine::detailLevelParticleChanged); 100 100 } 101 101 -
code/branches/core3/src/orxonox/Settings.cc
r1596 r1610 68 68 void Settings::setConfigValues() 69 69 { 70 SetConfigValue(dataPath_, "../../Media/").description("Relative path to the game data.").callback( &Settings::dataPathChanged);70 SetConfigValue(dataPath_, "../../Media/").description("Relative path to the game data.").callback(this, &Settings::dataPathChanged); 71 71 } 72 72 -
code/branches/core3/src/orxonox/objects/ParticleProjectile.cc
r1597 r1610 64 64 void ParticleProjectile::setConfigValues() 65 65 { 66 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback( &ParticleProjectile::speedChanged);66 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback((Projectile*)this, &ParticleProjectile::speedChanged); 67 67 } 68 68 -
code/branches/core3/src/orxonox/objects/Projectile.cc
r1596 r1610 74 74 SetConfigValue(damage_, 15.0).description("The damage caused by the projectile"); 75 75 SetConfigValue(lifetime_, 4.0).description("The time in seconds a projectile stays alive"); 76 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback( &Projectile::speedChanged);76 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback(this, &Projectile::speedChanged); 77 77 } 78 78 -
code/branches/core3/src/orxonox/objects/RotatingProjectile.cc
r1596 r1610 65 65 void RotatingProjectile::setConfigValues() 66 66 { 67 SetConfigValue(colour_, ColourValue(1.0, 0.0, 0.0)).callback( &RotatingProjectile::colourChanged);67 SetConfigValue(colour_, ColourValue(1.0, 0.0, 0.0)).callback(this, &RotatingProjectile::colourChanged); 68 68 } 69 69 -
code/branches/core3/src/orxonox/objects/WorldEntity.cc
r1592 r1610 112 112 BaseObject::XMLPort(xmlelement, mode); 113 113 114 XMLPortParamExternTemplate(Ogre::Node, this->node_, "position", setPosition, getPosition, xmlelement, mode, Ogre::Node, const Vector3&); 114 std::cout << "111111111111111\n"; 115 XMLPortParamExternTemplate(WorldEntity, Ogre::Node, this->node_, "position", setPosition, getPosition, xmlelement, mode, Ogre::Node, const Vector3&); 116 std::cout << "222222222222222\n"; 115 117 XMLPortParamLoadOnly(WorldEntity, "direction", setDirectionSimple, xmlelement, mode); 116 118 XMLPortParamLoadOnly(WorldEntity, "yawpitchroll", setYawPitchRoll, xmlelement, mode); -
code/branches/core3/src/util/Debug.h
r1593 r1610 86 86 87 87 #if ORX_HARD_DEBUG_LEVEL >= ORX_NONE 88 #define COUT0 88 #define COUT0 \ 89 89 (getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : COUT_EXEC(0) 90 90 #else … … 94 94 95 95 #if ORX_HARD_DEBUG_LEVEL >= ORX_ERROR 96 #define COUT1 96 #define COUT1 \ 97 97 (getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : COUT_EXEC(1) 98 98 #else … … 170 170 171 171 #if ORX_HARD_DEBUG_LEVEL >= ORX_NONE 172 #define CCOUT0 172 #define CCOUT0 \ 173 173 (getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : CCOUT_EXEC(0) 174 174 #else … … 178 178 179 179 #if ORX_HARD_DEBUG_LEVEL >= ORX_ERROR 180 #define CCOUT1 180 #define CCOUT1 \ 181 181 (getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : CCOUT_EXEC(1) 182 182 #else
Note: See TracChangeset
for help on using the changeset viewer.