Changeset 112:d3ff76c4a237 in rrlib_rtti
- Timestamp:
- 28.01.2019 12:27:21 (10 months ago)
- Branch:
- 17.03
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tStaticTypeRegistration.cpp
r97 r112 87 87 } 88 88 89 tStaticTypeRegistration& tStaticTypeRegistration::AddName(const char* legacy_name) 90 { 91 if (Register().empty() || Register().back().types.empty()) 92 { 93 throw std::runtime_error("Type must be added first"); 94 } 95 Register().back().types.back().AddName(legacy_name); 96 return *this; 97 } 98 89 99 const char* tStaticTypeRegistration::GetTypeRegistrationSharedLibrary(const tType& type) 90 100 { -
tStaticTypeRegistration.h
r105 r112 119 119 } 120 120 121 /*! 122 * Adds custom/legacy name to last registered type. 123 * If no type was registered yet, throws exception. 124 * 125 * \param legacy_name Secondary custom name (typically legacy name) 126 */ 127 tStaticTypeRegistration& AddName(const char* legacy_name); 128 129 121 130 static const char* GetTypeRegistrationSharedLibrary(const tType& type); 122 131
Note: See TracChangeset
for help on using the changeset viewer.