Changeset 157
- Timestamp:
- 09/02/08 01:19:09 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/userinfo.h
r156 r157 383 383 } 384 384 385 public:386 385 //! the only instance of this class (each type T has its own instance) 387 386 //! which is used as a factory for processing related userinfos … … 484 483 }; 485 484 486 CompoundUserInfo<T>( string userFriendlyTypeName ) 487 : TypedUserInfo<T>( userFriendlyTypeName ) 488 { 489 } 490 491 public: 485 private: 492 486 493 487 void AssemblyComponentsFromXML( DOMElement &element ) … … 510 504 return true; 511 505 } 506 507 protected: 508 509 CompoundUserInfo<T>( string userFriendlyTypeName ) 510 : TypedUserInfo<T>( userFriendlyTypeName ) 511 { 512 } 513 512 514 }; 513 515 … … 525 527 template<typename T> class ValuedUserInfo : public TypedUserInfo<T> 526 528 { 529 private: 530 void AssemblyComponentsFromXML( DOMElement &element ) 531 { 532 value = Attribute::value.Get( element ); 533 } 534 535 bool DisassemblyComponentsToXML( DOMElement &element ) 536 { 537 Attribute::value.Set( element, value ); 538 return true; 539 } 540 527 541 protected: 528 542 ValuedUserInfo<T>( string userFriendlyTypeName ) … … 535 549 } 536 550 537 public: 538 //! public attribute which is automatically binded to a proper DOMElement attribute 551 //! string variable which is automatically binded to a proper DOMElement attribute 539 552 string value; 540 541 void AssemblyComponentsFromXML( DOMElement &element )542 {543 value = Attribute::value.Get( element );544 }545 546 bool DisassemblyComponentsToXML( DOMElement &element )547 {548 Attribute::value.Set( element, value );549 return true;550 }551 553 }; 552 554