Show
Ignore:
Timestamp:
06/09/10 11:50:16 (14 years ago)
Author:
mido
Message:

a small patch of documentation, to be contiuned..

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/user_info.h

    r1015 r1063  
    395395        //! The new instance of type T* is constructed and initialized with values stored in the Setting element[name] 
    396396        //! 
    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). 
    398399        template<class T> 
    399400        static bdm::shared_ptr<T> build ( const Setting &element, const string &name, SettingPresence settingPresence = optional ) { 
     
    412413        //! The new instance of type T* is constructed and initialized with values stored in the Setting element[index] 
    413414        //! 
    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). 
    415417        template<class T> 
    416418        static bdm::shared_ptr<T> build ( const Setting &element, const int index, SettingPresence settingPresence = optional ) { 
     
    447449 
    448450        //! 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. 
    450452        template<class T> static bool get ( T &instance, const Setting &element, const string &name, SettingPresence settingPresence = optional ) { 
    451453                if ( !element.exists ( name ) ) { 
     
    461463 
    462464        //! 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. 
    464466        template<class T> static bool get ( T &instance, const Setting &element, const int index, SettingPresence settingPresence = optional ) { 
    465467                if ( element.getLength() <= index ) { 
     
    490492 
    491493        //! 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. 
    493495        template<class T> static bool get ( Array<T> &array_to_load, const Setting &element, const string &name, SettingPresence settingPresence = optional ) { 
    494496                if ( !element.exists ( name ) ) { 
     
    504506 
    505507        //! 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. 
    507509        template<class T> static bool get ( Array<T> &array_to_load, const Setting &element, const int index, SettingPresence settingPresence = optional ) { 
    508510                if ( element.getLength() <= index ) {