Changeset 1063 for library/bdm/base/user_info.h
- Timestamp:
- 06/09/10 11:50:16 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/user_info.h
r1015 r1063 395 395 //! The new instance of type T* is constructed and initialized with values stored in the Setting element[name] 396 396 //! 397 //! If there does not exist any sub-element named #name and settingPresence is #optional, an empty bdm::shared_ptr<T> is returned. When settingPresence is #compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 397 //! If there does not exist any sub-element named name and settingPresence is optional, an empty bdm::shared_ptr<T> is returned. 398 //! When settingPresence is compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 398 399 template<class T> 399 400 static bdm::shared_ptr<T> build ( const Setting &element, const string &name, SettingPresence settingPresence = optional ) { … … 412 413 //! The new instance of type T* is constructed and initialized with values stored in the Setting element[index] 413 414 //! 414 //! If there does not exist any sub-element indexed by #index, and settingPresence is #optional, an empty bdm::shared_ptr<T> is returned. When settingPresence is #compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 415 //! If there does not exist any sub-element indexed by index, and settingPresence is optional, an empty bdm::shared_ptr<T> is returned. 416 //! When settingPresence is compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 415 417 template<class T> 416 418 static bdm::shared_ptr<T> build ( const Setting &element, const int index, SettingPresence settingPresence = optional ) { … … 447 449 448 450 //! The existing instance of type T is initialized with values stored in the Setting element[name] 449 //! If there does not exist any sub-element named #name, this method returns false.451 //! If there does not exist any sub-element named name, this method returns false. 450 452 template<class T> static bool get ( T &instance, const Setting &element, const string &name, SettingPresence settingPresence = optional ) { 451 453 if ( !element.exists ( name ) ) { … … 461 463 462 464 //! The existing instance of type T is initialized with values stored in the Setting element[index] 463 //! If there does not exist any sub-element indexed by #index, this method returns false.465 //! If there does not exist any sub-element indexed by index, this method returns false. 464 466 template<class T> static bool get ( T &instance, const Setting &element, const int index, SettingPresence settingPresence = optional ) { 465 467 if ( element.getLength() <= index ) { … … 490 492 491 493 //! The existing array of type T is initialized with values stored in the Setting element[name] 492 //! If there is not any sub-element named #name, this method returns false.494 //! If there is not any sub-element named name, this method returns false. 493 495 template<class T> static bool get ( Array<T> &array_to_load, const Setting &element, const string &name, SettingPresence settingPresence = optional ) { 494 496 if ( !element.exists ( name ) ) { … … 504 506 505 507 //! The existing array of type T is initialized with values stored in the Setting element[index] 506 //! If there is not any sub-element indexed by #index, this method returns false.508 //! If there is not any sub-element indexed by index, this method returns false. 507 509 template<class T> static bool get ( Array<T> &array_to_load, const Setting &element, const int index, SettingPresence settingPresence = optional ) { 508 510 if ( element.getLength() <= index ) {