Manual for OpenFLUID 2.1.11

Public Member Functions | List of all members
openfluid::core::Attributes Class Reference

#include <core/Attributes.hpp>

Public Member Functions

bool setValue (const AttributeName_t &aName, const Value &aValue)
 
bool setValue (const AttributeName_t &aName, const std::string &aValue)
 
bool setValueFromRawString (const AttributeName_t &aName, const std::string &aValue)
 
bool getValue (const AttributeName_t &aName, openfluid::core::StringValue &aValue) const
 
bool getValue (const AttributeName_t &aName, std::string &aValue) const
 
const openfluid::core::Valuevalue (const AttributeName_t &aName) const
 
bool getValueAsDouble (const AttributeName_t &aName, double &aValue) const
 
bool getValueAsLong (const AttributeName_t &aName, long &aValue) const
 
bool isAttributeExist (const AttributeName_t &aName) const
 
std::vector< AttributeName_tgetAttributesNames () const
 
bool replaceValue (const AttributeName_t &aName, const StringValue &aValue)
 
bool replaceValue (const AttributeName_t &aName, const std::string &aValue)
 
bool removeAttribute (const AttributeName_t &aName)
 
void clear ()
 

Member Function Documentation

◆ clear()

void openfluid::core::Attributes::clear ( )

◆ getAttributesNames()

std::vector<AttributeName_t> openfluid::core::Attributes::getAttributesNames ( ) const

◆ getValue() [1/2]

bool openfluid::core::Attributes::getValue ( const AttributeName_t aName,
openfluid::core::StringValue aValue 
) const

◆ getValue() [2/2]

bool openfluid::core::Attributes::getValue ( const AttributeName_t aName,
std::string &  aValue 
) const

◆ getValueAsDouble()

bool openfluid::core::Attributes::getValueAsDouble ( const AttributeName_t aName,
double &  aValue 
) const

◆ getValueAsLong()

bool openfluid::core::Attributes::getValueAsLong ( const AttributeName_t aName,
long &  aValue 
) const

◆ isAttributeExist()

bool openfluid::core::Attributes::isAttributeExist ( const AttributeName_t aName) const

◆ removeAttribute()

bool openfluid::core::Attributes::removeAttribute ( const AttributeName_t aName)

◆ replaceValue() [1/2]

bool openfluid::core::Attributes::replaceValue ( const AttributeName_t aName,
const std::string &  aValue 
)

◆ replaceValue() [2/2]

bool openfluid::core::Attributes::replaceValue ( const AttributeName_t aName,
const StringValue aValue 
)

◆ setValue() [1/2]

bool openfluid::core::Attributes::setValue ( const AttributeName_t aName,
const std::string &  aValue 
)

◆ setValue() [2/2]

bool openfluid::core::Attributes::setValue ( const AttributeName_t aName,
const Value aValue 
)

◆ setValueFromRawString()

bool openfluid::core::Attributes::setValueFromRawString ( const AttributeName_t aName,
const std::string &  aValue 
)

◆ value()

const openfluid::core::Value* openfluid::core::Attributes::value ( const AttributeName_t aName) const

The documentation for this class was generated from the following file: