40 #ifndef __OPENFLUID_CORE_MAPVALUE_HPP__ 41 #define __OPENFLUID_CORE_MAPVALUE_HPP__ 96 typedef std::map<std::string,std::shared_ptr<Value> >
Map_t;
139 void writeToStream(std::ostream& OutStm)
const;
143 writeToStream(OutStm);
151 void set(
const std::string& Key,
Value* Element);
158 inline void setDouble(
const std::string& Key,
const double& Val)
169 inline void setInteger(
const std::string& Key,
const long& Val)
179 inline void setBoolean(
const std::string& Key,
const bool& Val)
189 inline void setString(
const std::string& Key,
const std::string& Val)
228 Value& operator[](
const std::string& Key);
235 Value& at(
const std::string& Key);
242 const Value& at(
const std::string& Key)
const;
279 inline std::string
getString(
const std::string& Key)
const 318 bool remove(
const std::string& Key);
326 return m_Value.size();
335 return m_Value.size();
345 return (m_Value.find(Key) != m_Value.end());
352 std::vector<std::string> getKeys()
const;
365 return m_Value.begin();
374 return m_Value.begin();
383 return m_Value.end();
390 inline const_iterator
end()
const 392 return m_Value.end();
Definition: IntegerValue.hpp:79
void setString(const std::string &Key, const std::string &Val)
Definition: MapValue.hpp:189
const IntegerValue & asIntegerValue() const
const VectorValue & asVectorValue() const
const StringValue & asStringValue() const
std::map< std::string, std::shared_ptr< Value > > Map_t
Definition: MapValue.hpp:96
unsigned long getSize() const
Definition: MapValue.hpp:324
const_iterator begin() const
Definition: MapValue.hpp:372
Map_t::const_iterator const_iterator
Definition: MapValue.hpp:100
Definition: MatrixValue.hpp:84
long get() const
Definition: IntegerValue.hpp:134
Definition: ApplicationException.hpp:47
Definition: CompoundValue.hpp:51
std::string get() const
Definition: StringValue.hpp:172
Definition: StringValue.hpp:76
long getInteger(const std::string &Key) const
Definition: MapValue.hpp:259
Definition: VectorValue.hpp:84
const MatrixValue & asMatrixValue() const
Definition: BooleanValue.hpp:80
unsigned long size() const
Definition: MapValue.hpp:333
const_iterator end() const
Definition: MapValue.hpp:390
Definition: DoubleValue.hpp:80
void setBoolean(const std::string &Key, const bool &Val)
Definition: MapValue.hpp:179
double getDouble(const std::string &Key) const
Definition: MapValue.hpp:249
const DoubleValue & asDoubleValue() const
Definition: MapValue.hpp:92
MapValue()
Definition: MapValue.hpp:113
void setVectorValue(const std::string &Key, const VectorValue &Val)
Definition: MapValue.hpp:199
void setDouble(const std::string &Key, const double &Val)
Definition: MapValue.hpp:158
Type
Definition: Value.hpp:68
std::string getString(const std::string &Key) const
Definition: MapValue.hpp:279
MapValue(const Map_t &Val)
Definition: MapValue.hpp:121
iterator begin()
Definition: MapValue.hpp:363
MapValue getMapValue(const std::string &Key) const
Definition: MapValue.hpp:309
Type getType() const
Definition: MapValue.hpp:129
bool get() const
Definition: BooleanValue.hpp:133
void writeQuotedToStream(std::ostream &OutStm) const
Definition: MapValue.hpp:141
Value * clone() const
Definition: MapValue.hpp:134
MatrixValue getMatrixValue(const std::string &Key) const
Definition: MapValue.hpp:299
void setMatrixValue(const std::string &Key, const MatrixValue &Val)
Definition: MapValue.hpp:209
iterator end()
Definition: MapValue.hpp:381
bool getBoolean(const std::string &Key) const
Definition: MapValue.hpp:269
void setMapValue(const std::string &Key, const MapValue &Val)
Definition: MapValue.hpp:219
#define OPENFLUID_API
Definition: dllexport.hpp:86
void setInteger(const std::string &Key, const long &Val)
Definition: MapValue.hpp:169
VectorValue getVectorValue(const std::string &Key) const
Definition: MapValue.hpp:289
const BooleanValue & asBooleanValue() const
bool isKeyExist(const std::string &Key) const
Definition: MapValue.hpp:343
double get() const
Definition: DoubleValue.hpp:135
const MapValue & asMapValue() const
Map_t::iterator iterator
Definition: MapValue.hpp:98