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: CompoundValue.hpp:51
void writeQuotedToStream(std::ostream &OutStm) const
Definition: MapValue.hpp:183
void setBoolean(const std::string &Key, const bool &Val)
Definition: MapValue.hpp:221
Type
Definition: Value.hpp:68
void setDouble(const std::string &Key, const double &Val)
Definition: MapValue.hpp:200
Map_t::iterator iterator
Definition: MapValue.hpp:140
iterator end()
Definition: MapValue.hpp:423
void setMapValue(const std::string &Key, const MapValue &Val)
Definition: MapValue.hpp:261
Definition: VectorValue.hpp:118
const_iterator begin() const
Definition: MapValue.hpp:414
long getInteger(const std::string &Key) const
Definition: MapValue.hpp:301
double getDouble(const std::string &Key) const
Definition: MapValue.hpp:291
#define OPENFLUID_API
Definition: dllexport.hpp:86
long get() const
Definition: IntegerValue.hpp:158
Definition: MapValue.hpp:134
std::string get() const
Definition: StringValue.hpp:184
Definition: ApplicationException.hpp:47
VectorValue getVectorValue(const std::string &Key) const
Definition: MapValue.hpp:331
const_iterator end() const
Definition: MapValue.hpp:432
double get() const
Definition: DoubleValue.hpp:157
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
bool get() const
Definition: BooleanValue.hpp:157
std::map< std::string, std::shared_ptr< Value > > Map_t
Definition: MapValue.hpp:138
Type getType() const
Definition: MapValue.hpp:171
MapValue()
Definition: MapValue.hpp:155
Value * clone() const
Definition: MapValue.hpp:176
const MapValue & asMapValue() const
const MatrixValue & asMatrixValue() const
Map_t::const_iterator const_iterator
Definition: MapValue.hpp:142
const DoubleValue & asDoubleValue() const
unsigned long size() const
Definition: MapValue.hpp:375
void setMatrixValue(const std::string &Key, const MatrixValue &Val)
Definition: MapValue.hpp:251
const StringValue & asStringValue() const
Definition: BooleanValue.hpp:104
std::string getString(const std::string &Key) const
Definition: MapValue.hpp:321
MatrixValue getMatrixValue(const std::string &Key) const
Definition: MapValue.hpp:341
bool getBoolean(const std::string &Key) const
Definition: MapValue.hpp:311
Definition: DoubleValue.hpp:102
const IntegerValue & asIntegerValue() const
const BooleanValue & asBooleanValue() const
MapValue getMapValue(const std::string &Key) const
Definition: MapValue.hpp:351
MapValue(const Map_t &Val)
Definition: MapValue.hpp:163
void setVectorValue(const std::string &Key, const VectorValue &Val)
Definition: MapValue.hpp:241
Definition: MatrixValue.hpp:115
unsigned long getSize() const
Definition: MapValue.hpp:366
const VectorValue & asVectorValue() const
Definition: IntegerValue.hpp:103
iterator begin()
Definition: MapValue.hpp:405
void setInteger(const std::string &Key, const long &Val)
Definition: MapValue.hpp:211
Definition: StringValue.hpp:88