Changeset 2371 for code/branches/presentation/src/core
- Timestamp:
- Dec 10, 2008, 12:50:05 PM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
- Property svn:mergeinfo changed
/code/branches/network (added) merged: 2356 /code/branches/network64 (added) merged: 2210-2211,2245-2247,2255,2307,2309-2312,2316,2355
- Property svn:mergeinfo changed
-
code/branches/presentation/src/core/Factory.cc
r2171 r2371 58 58 @return The Identifier 59 59 */ 60 Identifier* Factory::getIdentifier(const u nsigned int id)60 Identifier* Factory::getIdentifier(const uint32_t id) 61 61 { 62 std::map<u nsigned int, Identifier*>::const_iterator it = getFactoryPointer()->identifierNetworkIDMap_.find(id);62 std::map<uint32_t, Identifier*>::const_iterator it = getFactoryPointer()->identifierNetworkIDMap_.find(id); 63 63 if (it != getFactoryPointer()->identifierNetworkIDMap_.end()) 64 64 return it->second; … … 85 85 @param newID The new networkID 86 86 */ 87 void Factory::changeNetworkID(Identifier* identifier, const u nsigned int oldID, const unsigned int newID)87 void Factory::changeNetworkID(Identifier* identifier, const uint32_t oldID, const uint32_t newID) 88 88 { 89 89 getFactoryPointer()->identifierNetworkIDMap_.erase(oldID); -
code/branches/presentation/src/core/Factory.h
r2171 r2371 49 49 #include <map> 50 50 #include <string> 51 #include "util/Integers.h" 51 52 52 53 namespace orxonox … … 60 61 public: 61 62 static Identifier* getIdentifier(const std::string& name); 62 static Identifier* getIdentifier(const u nsigned int id);63 static Identifier* getIdentifier(const uint32_t id); 63 64 static void add(const std::string& name, Identifier* identifier); 64 static void changeNetworkID(Identifier* identifier, const u nsigned int oldID, const unsigned int newID);65 static void changeNetworkID(Identifier* identifier, const uint32_t oldID, const uint32_t newID); 65 66 static void createClassHierarchy(); 66 67 … … 83 84 84 85 std::map<std::string, Identifier*> identifierStringMap_; //!< The map, mapping the name with the Identifier 85 std::map<u nsigned int, Identifier*> identifierNetworkIDMap_; //!< The map, mapping the network ID with the Identifier86 std::map<uint32_t, Identifier*> identifierNetworkIDMap_; //!< The map, mapping the network ID with the Identifier 86 87 }; 87 88 -
code/branches/presentation/src/core/Identifier.cc
r2171 r2371 235 235 @param id The new network ID 236 236 */ 237 void Identifier::setNetworkID(u nsigned int id)237 void Identifier::setNetworkID(uint32_t id) 238 238 { 239 239 Factory::changeNetworkID(this, this->classID_, id); -
code/branches/presentation/src/core/Identifier.h
r2171 r2371 68 68 #include "Super.h" 69 69 #include "Functor.h" 70 #include "util/Integers.h" 70 71 #include "util/Debug.h" 71 72 #include "util/String.h" … … 230 231 231 232 /** @brief Returns the network ID to identify a class through the network. @return the network ID */ 232 inline const u nsigned int getNetworkID() const { return this->classID_; }233 inline const uint32_t getNetworkID() const { return this->classID_; } 233 234 234 235 /** @brief Sets the network ID to a new value. @param id The new value */ 235 void setNetworkID(u nsigned int id);236 void setNetworkID(uint32_t id); 236 237 237 238 void addConfigValueContainer(const std::string& varname, ConfigValueContainer* container); … … 315 316 BaseFactory* factory_; //!< The Factory, able to create new objects of the given class (if available) 316 317 static int hierarchyCreatingCounter_s; //!< Bigger than zero if at least one Identifier stores its parents (its an int instead of a bool to avoid conflicts with multithreading) 317 u nsigned int classID_;//!< The network ID to identify a class through the network318 uint32_t classID_; //!< The network ID to identify a class through the network 318 319 319 320 bool bHasConfigValues_; //!< True if this class has at least one assigned config value -
code/branches/presentation/src/core/Template.cc
- Property svn:mergeinfo changed
/code/branches/network/src/core/Template.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/core/Template.h
- Property svn:mergeinfo changed
/code/branches/network/src/core/Template.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/core/XMLFile.h
- Property svn:mergeinfo changed
/code/branches/network/src/core/XMLFile.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/presentation/src/core/XMLIncludes.h
- Property svn:mergeinfo changed
/code/branches/network/src/core/XMLIncludes.h (added) merged: 2356
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.