BVB Source Codes

CRYENGINE Show ClassRegistryReplicator.h Source code

Return Download CRYENGINE: download ClassRegistryReplicator.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __CLASSREGISTRYREPLICATOR_H__
  4. #define __CLASSREGISTRYREPLICATOR_H__
  5.  
  6. #pragma once
  7.  
  8. class CClassRegistryReplicator
  9. {
  10. public:
  11.         CClassRegistryReplicator() { Reset(); }
  12.  
  13.         bool   RegisterClassName(const string& name, uint16 id);
  14.         bool   ClassNameFromId(string& name, uint16 id) const;
  15.         bool   ClassIdFromName(uint16& id, const string& name) const;
  16.         size_t NumClassIds() { return m_classIdToName.size(); }
  17.         void   Reset();
  18.         uint32 GetHash();
  19.         void   DumpClasses();
  20.  
  21.         void   GetMemoryStatistics(ICrySizer* s) const;
  22.  
  23. private:
  24.         uint16                   m_numClassIds;
  25.         std::vector<string>      m_classIdToName;
  26.         std::map<string, uint16> m_classNameToId;
  27. };
  28.  
  29. #endif
  30.  
downloadClassRegistryReplicator.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top