VAPoR  3.0.0
Classes | Public Member Functions | Friends | List of all members
VAPoR::DC::Attribute Class Reference

Variable or global metadata. More...

#include <DC.h>

Public Member Functions

 Attribute ()
 
 Attribute (string name, XType type, const std::vector< float > &values)
 
 Attribute (string name, XType type, const std::vector< double > &values)
 
 Attribute (string name, XType type, const std::vector< int > &values)
 
 Attribute (string name, XType type, const std::vector< long > &values)
 
 Attribute (string name, XType type, const string &values)
 
 Attribute (string name, XType type)
 
virtual ~Attribute ()
 
string GetName () const
 Get attribute name. More...
 
XType GetXType () const
 Get an attribute's external representation type. More...
 
void GetValues (std::vector< float > &values) const
 
void GetValues (std::vector< double > &values) const
 
void GetValues (std::vector< int > &values) const
 
void GetValues (std::vector< long > &values) const
 
void GetValues (string &values) const
 
void SetValues (const std::vector< float > &values)
 
void SetValues (const std::vector< double > &values)
 
void SetValues (const std::vector< int > &values)
 
void SetValues (const std::vector< long > &values)
 
void SetValues (const string &values)
 

Friends

std::ostream & operator<< (std::ostream &o, const Attribute &attr)
 

Detailed Description

Variable or global metadata.

Definition at line 237 of file DC.h.

Constructor & Destructor Documentation

VAPoR::DC::Attribute::Attribute ( )
inline

Definition at line 239 of file DC.h.

VAPoR::DC::Attribute::Attribute ( string  name,
XType  type,
const std::vector< float > &  values 
)

Attribute constructor

Parameters
[in]nameThe name of the attribute
[in]typeExternal representation format
[in]valuesA vector specifying the attribute's values
VAPoR::DC::Attribute::Attribute ( string  name,
XType  type,
const std::vector< double > &  values 
)
VAPoR::DC::Attribute::Attribute ( string  name,
XType  type,
const std::vector< int > &  values 
)
VAPoR::DC::Attribute::Attribute ( string  name,
XType  type,
const std::vector< long > &  values 
)
VAPoR::DC::Attribute::Attribute ( string  name,
XType  type,
const string &  values 
)
VAPoR::DC::Attribute::Attribute ( string  name,
XType  type 
)
inline

Definition at line 252 of file DC.h.

virtual VAPoR::DC::Attribute::~Attribute ( )
inlinevirtual

Definition at line 255 of file DC.h.

Member Function Documentation

string VAPoR::DC::Attribute::GetName ( ) const
inline

Get attribute name.

Definition at line 259 of file DC.h.

void VAPoR::DC::Attribute::GetValues ( std::vector< float > &  values) const

Get an attribute's value(s)

Get the value(s) for an attribute, performing type conversion as necessary from the external storage type to the desired type

void VAPoR::DC::Attribute::GetValues ( std::vector< double > &  values) const
void VAPoR::DC::Attribute::GetValues ( std::vector< int > &  values) const
void VAPoR::DC::Attribute::GetValues ( std::vector< long > &  values) const
void VAPoR::DC::Attribute::GetValues ( string &  values) const
XType VAPoR::DC::Attribute::GetXType ( ) const
inline

Get an attribute's external representation type.

Definition at line 263 of file DC.h.

void VAPoR::DC::Attribute::SetValues ( const std::vector< float > &  values)

Set an attribute's value(s)

Set the value(s) for an attribute, performing type conversion as necessary to meet the external storage type.

void VAPoR::DC::Attribute::SetValues ( const std::vector< double > &  values)
void VAPoR::DC::Attribute::SetValues ( const std::vector< int > &  values)
void VAPoR::DC::Attribute::SetValues ( const std::vector< long > &  values)
void VAPoR::DC::Attribute::SetValues ( const string &  values)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Attribute attr 
)
friend

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