21#ifndef MS_CUSTOMPROPERTY_HPP
22#define MS_CUSTOMPROPERTY_HPP
28#include "msparser_lim.hpp"
30namespace matrix_science {
100 void defaultValues();
106 int getNumberOfProperties()
const;
109 std::string getPropertyName(
const int index)
const;
112 void setPropertyName(
const int index,
const char* name);
115 int findProperty(
const char* name,
const int startFrom = 0)
const;
118 int findPropertyBeginning(
const char* nameBeginning,
const int startFrom = 0)
const;
121 std::string getPropValStringByName(
const char* name)
const;
124 std::string getPropValStringByNumber(
const int index)
const;
127 std::string getDelimiterByNumber(
const int index)
const;
133 ,
const char* delimiter
134 ,
const bool bFirstPlace =
false
140 ,
const bool bFirstPlace =
false
144 void setPropValStringByName
147 ,
const bool bFirstPlace =
false
151 void setPropValCharByName
154 ,
const bool bFirstPlace =
false
158 void setPropValIntByName
161 ,
const bool bFirstPlace =
false
165 void setPropValInt64ByName
168 ,
const bool bFirstPlace =
false
172 void setPropValBoolByName
175 ,
const bool bFirstPlace =
false
179 void setPropValFloatByName
182 ,
const bool bFirstPlace =
false
186 void setPropValStringByNumber
193 std::string getDefaultDelimiter()
const;
196 void setDefaultDelimiter(
const char* delim);
199 void delProp(
const char* name);
202 void delPropStart(
const char* nameBeginning);
208 void delPropByNumber(
const int index);
211 bool uncommentProp(
const int index,
const char * delimeter = 0);
214 std::string getPreceedingComments()
const;
217 void setPreceedingComments(
const std::string & comments);
220 std::vector< std::string > names_;
221 std::vector< std::string > values_;
222 std::vector< std::string > delimiters_;
223 std::string defaultDelimiter_;
224 std::string preceedingComments_;
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition: ms_customproperty.hpp:91