Changeset 10845 for code/branches/cpp11_v2/src/libraries/core/config
- Timestamp:
- Nov 23, 2015, 10:20:29 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries/core/config
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryComment.h
r10817 r10845 54 54 55 55 /// Destructor 56 inline virtual~ConfigFileEntryComment() {}56 virtual inline ~ConfigFileEntryComment() {} 57 57 58 inline virtualconst std::string& getName() const override58 virtual inline const std::string& getName() const override 59 59 { return this->comment_; } 60 60 61 inline virtualvoid setComment(const std::string& comment) override61 virtual inline void setComment(const std::string& comment) override 62 62 { this->comment_ = comment; } 63 63 64 inline virtualvoid setValue(const std::string& value) override64 virtual inline void setValue(const std::string& value) override 65 65 {} 66 inline virtualconst std::string& getValue() const override66 virtual inline const std::string& getValue() const override 67 67 { return BLANKSTRING; } 68 68 69 inline void setString(bool bString) override69 virtual inline void setString(bool bString) override 70 70 {} 71 71 72 inline virtualconst std::string& getFileEntry() const override72 virtual inline const std::string& getFileEntry() const override 73 73 { return this->comment_; } 74 74 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryValue.h
r10817 r10845 67 67 68 68 /// Destructor 69 inline virtual~ConfigFileEntryValue() {}69 virtual inline ~ConfigFileEntryValue() {} 70 70 71 inline virtualconst std::string& getName() const override71 virtual inline const std::string& getName() const override 72 72 { return this->name_; } 73 73 74 inline virtualvoid setComment(const std::string& comment) override74 virtual inline void setComment(const std::string& comment) override 75 75 { this->additionalComment_ = comment; this->update(); } 76 76 77 inline virtualvoid setValue(const std::string& value) override77 virtual inline void setValue(const std::string& value) override 78 78 { this->value_ = value; this->update(); } 79 inline virtualconst std::string& getValue() const override79 virtual inline const std::string& getValue() const override 80 80 { return this->value_; } 81 81 82 inline void virtualsetString(bool bString) override82 virtual inline void setString(bool bString) override 83 83 { this->bString_ = bString; this->update(); } 84 84 85 inline virtualconst std::string& getFileEntry() const override85 virtual inline const std::string& getFileEntry() const override 86 86 { return this->fileEntry_; } 87 87 88 88 /// Returns the "key" of the value (in this case it's just the name of the entry, but for vectors it's different) 89 inline virtualconst std::string& getKeyString() const89 virtual inline const std::string& getKeyString() const 90 90 { return this->name_; } 91 91 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryVectorValue.h
r10817 r10845 67 67 inline ~ConfigFileEntryVectorValue() {} 68 68 69 inline unsigned int getIndex() const override69 virtual inline unsigned int getIndex() const override 70 70 { return this->index_; } 71 71 72 72 /// Returns the "key" of the value (the name of the vector plus the index of the element) 73 inline const std::string& getKeyString() const override73 virtual inline const std::string& getKeyString() const override 74 74 { return this->keyString_; } 75 75 76 76 private: 77 v oid update() override;77 virtual void update() override; 78 78 79 79 unsigned int index_; ///< The index of the element in the vector -
code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h
r10821 r10845 59 59 public: 60 60 virtual void call(void* object) = 0; 61 inline virtual~ConfigValueCallbackBase() {}61 virtual inline ~ConfigValueCallbackBase() {} 62 62 }; 63 63 … … 67 67 public: 68 68 inline ConfigValueCallback(void (T::*function) (void)) : function_(function) {} 69 inline virtual~ConfigValueCallback() {}70 inline virtualvoid call(void* object) override69 virtual inline ~ConfigValueCallback() {} 70 virtual inline void call(void* object) override 71 71 { 72 72 if (!IdentifierManager::getInstance().isCreatingHierarchy()) -
code/branches/cpp11_v2/src/libraries/core/config/SettingsConfigFile.h
r10818 r10845 68 68 ~SettingsConfigFile(); 69 69 70 v oid load() override; // tolua_export70 virtual void load() override; // tolua_export 71 71 void setFilename(const std::string& filename); // tolua_export 72 72 void clean(bool bCleanComments = false); // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.