40 #ifndef __OPENFLUID_CORE_MAPVALUE_HPP__ 41 #define __OPENFLUID_CORE_MAPVALUE_HPP__ 138 typedef std::map<std::string,std::shared_ptr<Value> >
Map_t;
181 void writeToStream(std::ostream& OutStm)
const;
185 writeToStream(OutStm);
193 void set(
const std::string& Key,
Value* Element);
200 inline void setDouble(
const std::string& Key,
const double& Val)
211 inline void setInteger(
const std::string& Key,
const long& Val)
221 inline void setBoolean(
const std::string& Key,
const bool& Val)
231 inline void setString(
const std::string& Key,
const std::string& Val)
270 Value& operator[](
const std::string& Key);
277 Value& at(
const std::string& Key);
284 const Value& at(
const std::string& Key)
const;
321 inline std::string
getString(
const std::string& Key)
const 360 bool remove(
const std::string& Key);
368 return m_Value.size();
377 return m_Value.size();
387 return (m_Value.find(Key) != m_Value.end());
394 std::vector<std::string> getKeys()
const;
407 return m_Value.begin();
416 return m_Value.begin();
425 return m_Value.end();
432 inline const_iterator
end()
const 434 return m_Value.end();
Definition: StringValue.hpp:88
Definition: CompoundValue.hpp:51
VectorValue getVectorValue(const std::string &Key) const
Definition: MapValue.hpp:331
Definition: IntegerValue.hpp:103
long getInteger(const std::string &Key) const
Definition: MapValue.hpp:301
std::string get() const
Definition: StringValue.hpp:184
Type
Definition: Value.hpp:68
Definition: VectorValue.hpp:118
std::string getString(const std::string &Key) const
Definition: MapValue.hpp:321
const VectorValue & asVectorValue() const
iterator end()
Definition: MapValue.hpp:423
MapValue getMapValue(const std::string &Key) const
Definition: MapValue.hpp:351
void setDouble(const std::string &Key, const double &Val)
Definition: MapValue.hpp:200
std::map< std::string, std::shared_ptr< Value > > Map_t
Definition: MapValue.hpp:138
void setVectorValue(const std::string &Key, const VectorValue &Val)
Definition: MapValue.hpp:241
Value * clone() const
Definition: MapValue.hpp:176
MatrixValue getMatrixValue(const std::string &Key) const
Definition: MapValue.hpp:341
unsigned long getSize() const
Definition: MapValue.hpp:366
const StringValue & asStringValue() const
void setInteger(const std::string &Key, const long &Val)
Definition: MapValue.hpp:211
unsigned long size() const
Definition: MapValue.hpp:375
iterator begin()
Definition: MapValue.hpp:405
const_iterator end() const
Definition: MapValue.hpp:432
void setString(const std::string &Key, const std::string &Val)
Definition: MapValue.hpp:231
bool isKeyExist(const std::string &Key) const
Definition: MapValue.hpp:385
Definition: ApplicationException.hpp:47
long get() const
Definition: IntegerValue.hpp:158
double getDouble(const std::string &Key) const
Definition: MapValue.hpp:291
bool get() const
Definition: BooleanValue.hpp:157
void setBoolean(const std::string &Key, const bool &Val)
Definition: MapValue.hpp:221
void setMapValue(const std::string &Key, const MapValue &Val)
Definition: MapValue.hpp:261
const MatrixValue & asMatrixValue() const
const IntegerValue & asIntegerValue() const
Definition: BooleanValue.hpp:104
Map_t::iterator iterator
Definition: MapValue.hpp:140
const_iterator begin() const
Definition: MapValue.hpp:414
const DoubleValue & asDoubleValue() const
const BooleanValue & asBooleanValue() const
Definition: DoubleValue.hpp:102
Type getType() const
Definition: MapValue.hpp:171
MapValue(const Map_t &Val)
Definition: MapValue.hpp:163
MapValue()
Definition: MapValue.hpp:155
const MapValue & asMapValue() const
Definition: MapValue.hpp:134
Map_t::const_iterator const_iterator
Definition: MapValue.hpp:142
#define OPENFLUID_API
Definition: dllexport.hpp:86
void setMatrixValue(const std::string &Key, const MatrixValue &Val)
Definition: MapValue.hpp:251
double get() const
Definition: DoubleValue.hpp:157
Definition: MatrixValue.hpp:115
void writeQuotedToStream(std::ostream &OutStm) const
Definition: MapValue.hpp:183
bool getBoolean(const std::string &Key) const
Definition: MapValue.hpp:311