25 #ifndef INCLUDED_RegisteredStringMap_h_GUID_066235BE_3687_44AD_C2A4_593D6E6780F3 26 #define INCLUDED_RegisteredStringMap_h_GUID_066235BE_3687_44AD_C2A4_593D6E6780F3 29 #include <osvr/Common/Export.h> 33 #include <json/value.h> 66 OSVR_COMMON_EXPORT std::vector<std::string> getEntries()
const;
69 std::vector<std::string> m_regEntries;
100 OSVR_COMMON_EXPORT
void 101 setupPeerMappings(std::vector<std::string>
const &peerEntries);
106 std::vector<uint32_t> m_remoteToLocal;
110 #endif // INCLUDED_RegisteredStringMap_h_GUID_066235BE_3687_44AD_C2A4_593D6E6780F3 OSVR_COMMON_EXPORT bool isModified() const
Has a new entry been added since the flag was last cleared?
Definition: RegisteredStringMap.cpp:89
Handles spatial transformations.
Definition: SerializationTraitExample_Complicated.h:40
OSVR_COMMON_EXPORT util::StringID getStringID(std::string const &str) const
retrieve the StringID associated with the given string returns an empty util::StringID if it was not ...
Definition: RegisteredStringMap.cpp:66
Centralize a string registry.
Definition: RegisteredStringMap.h:43
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
OSVR_COMMON_EXPORT void clearModifiedFlag()
Clear the modified flag.
Definition: RegisteredStringMap.cpp:90
OSVR_COMMON_EXPORT void printCurrentMap()
helper function to print size and contents of the map
Definition: RegisteredStringMap.cpp:39
Definition: TypeSafeId.h:41
bool m_modified
special flag that gets switched whenever new element is inserted;
Definition: RegisteredStringMap.h:72
OSVR_COMMON_EXPORT std::string getStringFromId(util::StringID id) const
retrieve the name of the string given the ID returns empty string if nothing found ...
Definition: RegisteredStringMap.cpp:77
OSVR_COMMON_EXPORT util::StringID registerStringID(std::string const &str)
register new ID with given string and returns StringID.
Definition: RegisteredStringMap.cpp:50