MI - Fimex
Public Member Functions | List of all members
MetNoFimex::CDMAttribute Class Reference

#include <fimex/CDMAttribute.h>

Inheritance diagram for MetNoFimex::CDMAttribute:
MetNoFimex::CDMNamedEntity

Public Member Functions

 CDMAttribute ()
 
 CDMAttribute (std::string name, std::string value)
 create a string attribute More...
 
 CDMAttribute (std::string name, char value)
 create a char attribute with a char array of length 1 More...
 
 CDMAttribute (std::string name, int value)
 create a int attribute with a int array of length 1 More...
 
 CDMAttribute (std::string name, short value)
 create a short attribute with a short array of length 1 More...
 
 CDMAttribute (std::string name, float value)
 create a float attribute with a float array of length 1 More...
 
 CDMAttribute (std::string name, double value)
 create a double attribute with a double array of length 1 More...
 
 CDMAttribute (std::string name, CDMDataType datatype, DataPtr data)
 create a attribute with the low level information More...
 
 CDMAttribute (const std::string &name, const std::string &datatype, const std::string &value) throw (CDMException)
 create a attribute from a string representation More...
 
 CDMAttribute (const std::string &name, CDMDataType datatype, const std::vector< std::string > &values) throw (CDMException)
 create a attribute with a vector of values in string representation More...
 
virtual ~CDMAttribute ()
 
const std::stringgetName () const
 retrieve the name of the attribute More...
 
void setName (std::string newName)
 set the name of the attribute More...
 
const std::string getStringValue () const
 retrieve the stringified value of the attribute More...
 
const DataPtr getData () const
 retrieve the data-pointer of the attribute More...
 
void setData (DataPtr data)
 set the data for this attribute More...
 
CDMDataType getDataType () const
 retrieve the datatype of the attribute More...
 
void toXMLStream (std::ostream &out, const std::string &indent="") const
 
- Public Member Functions inherited from MetNoFimex::CDMNamedEntity
virtual ~CDMNamedEntity ()=0
 

Constructor & Destructor Documentation

MetNoFimex::CDMAttribute::CDMAttribute ( )
MetNoFimex::CDMAttribute::CDMAttribute ( std::string  name,
std::string  value 
)
explicit

create a string attribute

MetNoFimex::CDMAttribute::CDMAttribute ( std::string  name,
char  value 
)
explicit

create a char attribute with a char array of length 1

MetNoFimex::CDMAttribute::CDMAttribute ( std::string  name,
int  value 
)
explicit

create a int attribute with a int array of length 1

MetNoFimex::CDMAttribute::CDMAttribute ( std::string  name,
short  value 
)
explicit

create a short attribute with a short array of length 1

MetNoFimex::CDMAttribute::CDMAttribute ( std::string  name,
float  value 
)
explicit

create a float attribute with a float array of length 1

MetNoFimex::CDMAttribute::CDMAttribute ( std::string  name,
double  value 
)
explicit

create a double attribute with a double array of length 1

MetNoFimex::CDMAttribute::CDMAttribute ( std::string  name,
CDMDataType  datatype,
DataPtr  data 
)
explicit

create a attribute with the low level information

MetNoFimex::CDMAttribute::CDMAttribute ( const std::string name,
const std::string datatype,
const std::string value 
)
throw (CDMException
)
explicit

create a attribute from a string representation

MetNoFimex::CDMAttribute::CDMAttribute ( const std::string name,
CDMDataType  datatype,
const std::vector< std::string > &  values 
)
throw (CDMException
)
explicit

create a attribute with a vector of values in string representation

virtual MetNoFimex::CDMAttribute::~CDMAttribute ( )
virtual

Member Function Documentation

const DataPtr MetNoFimex::CDMAttribute::getData ( ) const
inline

retrieve the data-pointer of the attribute

CDMDataType MetNoFimex::CDMAttribute::getDataType ( ) const
inline

retrieve the datatype of the attribute

References MetNoFimex::MIFI_DEPRECATED(), and toXMLStream().

const std::string& MetNoFimex::CDMAttribute::getName ( ) const
inlinevirtual

retrieve the name of the attribute

Implements MetNoFimex::CDMNamedEntity.

const std::string MetNoFimex::CDMAttribute::getStringValue ( ) const

retrieve the stringified value of the attribute

Referenced by setName().

void MetNoFimex::CDMAttribute::setData ( DataPtr  data)
inline

set the data for this attribute

void MetNoFimex::CDMAttribute::setName ( std::string  newName)
inline

set the name of the attribute

References getStringValue().

void MetNoFimex::CDMAttribute::toXMLStream ( std::ostream out,
const std::string indent = "" 
) const

Referenced by getDataType().


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