Changeset 150
- Timestamp:
- 08/21/08 16:28:09 (16 years ago)
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/userinfo.h
r149 r150 171 171 } 172 172 173 BindedAttribute nameAttribute; 174 175 BindedAttribute typeAttribute; 176 173 177 const string userFriendlyTypeName; 174 178 public: … … 178 182 UserInfo( const string& userFriendlyTypeName, const string& typeNameByRTTI ) 179 183 : userFriendlyTypeName ( userFriendlyTypeName ), 180 typeNameByRTTI( typeNameByRTTI ) 184 typeNameByRTTI( typeNameByRTTI ), 185 nameAttribute( "name"), 186 typeAttribute( "type") 181 187 { 182 188 userFriendlyNames2UI().insert( make_pair( userFriendlyTypeName, this ) ); -
tests/testUI.cpp
r149 r150 21 21 }; 22 22 23 const TypedUserInfo<int>* IntUI::pInstance = new IntUI();23 const TypedUserInfo<int>* TypedUserInfo<int>::pInstance = new IntUI(); 24 24 25 25 … … 42 42 }; 43 43 44 const TypedUserInfo<string>* StringUI::pInstance = new StringUI();44 const TypedUserInfo<string>* TypedUserInfo<string>::pInstance = new StringUI(); 45 45 46 46 class Car … … 83 83 }; 84 84 85 const TypedUserInfo<Car>* CarUI::pInstance = new CarUI( );85 const TypedUserInfo<Car>* TypedUserInfo<Car>::pInstance = new CarUI( ); 86 86 87 87