|
Field3D
|
#include <FieldMetadata.h>
Public Types | |
| typedef std::map< std::string, float > | FloatMetadata |
| typedef std::map< std::string, int > | IntMetadata |
| typedef std::map< std::string, std::string > | StrMetadata |
| typedef std::map< std::string, V3f > | VecFloatMetadata |
| typedef std::map< std::string, V3i > | VecIntMetadata |
Public Member Functions | |
| void | operator= (const FieldMetadata &other) |
Constructors & destructor | |
| FieldMetadata (MetadataCallback *owner) | |
| virtual | ~FieldMetadata () |
Metadata | |
| V3f | vecFloatMetadata (const std::string &name, const V3f &defaultVal) const |
| Tries to retrieve a V3f metadata value. Returns the specified default value if no metadata was found. More... | |
| float | floatMetadata (const std::string &name, const float defaultVal) const |
| Tries to retrieve a float metadata value. Returns the specified default value if no metadata was found. More... | |
| V3i | vecIntMetadata (const std::string &name, const V3i &defaultVal) const |
| Tries to retrieve a V3i metadata value. Returns the specified default value if no metadata was found. More... | |
| int | intMetadata (const std::string &name, const int defaultVal) const |
| Tries to retrieve an int metadata value. Returns the specified default value if no metadata was found. More... | |
| std::string | strMetadata (const std::string &name, const std::string &defaultVal) const |
| Tries to retrieve a string metadata value. Returns the specified default value if no metadata was found. More... | |
| const VecFloatMetadata & | vecFloatMetadata () const |
| Read only access to the m_vecFloatMetadata dictionary. More... | |
| const FloatMetadata & | floatMetadata () const |
| Read only access to the m_floatMetadata dictionary. More... | |
| const VecIntMetadata & | vecIntMetadata () const |
| Read only access to the m_vecIntMetadata dictionary. More... | |
| const IntMetadata & | intMetadata () const |
| Read only access to the m_intMetadata dictionary. More... | |
| const StrMetadata & | strMetadata () const |
| Read only access to the m_strMetadata dictionary. More... | |
| void | setVecFloatMetadata (const std::string &name, const V3f &val) |
| Set the a V3f value for the given metadata name. More... | |
| void | setFloatMetadata (const std::string &name, const float val) |
| Set the a float value for the given metadata name. More... | |
| void | setVecIntMetadata (const std::string &name, const V3i &val) |
| Set the a V3i value for the given metadata name. More... | |
| void | setIntMetadata (const std::string &name, const int val) |
| Set the a int value for the given metadata name. More... | |
| void | setStrMetadata (const std::string &name, const std::string &val) |
| Set the a string value for the given metadata name. More... | |
Private Member Functions | |
| FieldMetadata (const FieldMetadata &) | |
Private Attributes | |
| FloatMetadata | m_floatMetadata |
| Float metadata. More... | |
| IntMetadata | m_intMetadata |
| Int metadata. More... | |
| MetadataCallback * | m_owner |
| Pointer to owner. It is assumed that this has a lifetime at least as long as the Metadata instance. More... | |
| StrMetadata | m_strMetadata |
| String metadata. More... | |
| VecFloatMetadata | m_vecFloatMetadata |
| V3f metadata. More... | |
| VecIntMetadata | m_vecIntMetadata |
| V3i metadata. More... | |
Definition at line 84 of file FieldMetadata.h.
| typedef std::map<std::string, std::string> FieldMetadata::StrMetadata |
Definition at line 90 of file FieldMetadata.h.
| typedef std::map<std::string, int> FieldMetadata::IntMetadata |
Definition at line 91 of file FieldMetadata.h.
| typedef std::map<std::string, float> FieldMetadata::FloatMetadata |
Definition at line 92 of file FieldMetadata.h.
| typedef std::map<std::string, V3i> FieldMetadata::VecIntMetadata |
Definition at line 93 of file FieldMetadata.h.
| typedef std::map<std::string, V3f> FieldMetadata::VecFloatMetadata |
Definition at line 94 of file FieldMetadata.h.
|
inline |
Definition at line 101 of file FieldMetadata.h.
|
inlinevirtual |
Definition at line 105 of file FieldMetadata.h.
|
private |
|
inline |
Definition at line 111 of file FieldMetadata.h.
References m_floatMetadata, m_intMetadata, m_strMetadata, m_vecFloatMetadata, and m_vecIntMetadata.
Tries to retrieve a V3f metadata value. Returns the specified default value if no metadata was found.
Definition at line 113 of file FieldMetadata.cpp.
References m_vecFloatMetadata.
Referenced by Field3DOutputFileHDF5::writeMetadata(), and Field3DOutputFile::writeMetadata().
| float FieldMetadata::floatMetadata | ( | const std::string & | name, |
| const float | defaultVal | ||
| ) | const |
Tries to retrieve a float metadata value. Returns the specified default value if no metadata was found.
Definition at line 128 of file FieldMetadata.cpp.
References m_floatMetadata.
Referenced by Field3DOutputFileHDF5::writeMetadata(), and Field3DOutputFile::writeMetadata().
Tries to retrieve a V3i metadata value. Returns the specified default value if no metadata was found.
Definition at line 143 of file FieldMetadata.cpp.
References m_vecIntMetadata.
Referenced by detail::adjustedMIPFieldMapping(), Field3DOutputFileHDF5::writeMetadata(), and Field3DOutputFile::writeMetadata().
| int FieldMetadata::intMetadata | ( | const std::string & | name, |
| const int | defaultVal | ||
| ) | const |
Tries to retrieve an int metadata value. Returns the specified default value if no metadata was found.
Definition at line 158 of file FieldMetadata.cpp.
References m_intMetadata.
Referenced by Field3DOutputFileHDF5::writeMetadata(), and Field3DOutputFile::writeMetadata().
| std::string FieldMetadata::strMetadata | ( | const std::string & | name, |
| const std::string & | defaultVal | ||
| ) | const |
Tries to retrieve a string metadata value. Returns the specified default value if no metadata was found.
Definition at line 173 of file FieldMetadata.cpp.
References m_strMetadata.
Referenced by Field3DOutputFileHDF5::writeMetadata(), and Field3DOutputFile::writeMetadata().
|
inline |
Read only access to the m_vecFloatMetadata dictionary.
Definition at line 147 of file FieldMetadata.h.
|
inline |
|
inline |
Read only access to the m_vecIntMetadata dictionary.
Definition at line 155 of file FieldMetadata.h.
|
inline |
|
inline |
| FIELD3D_NAMESPACE_OPEN void FieldMetadata::setVecFloatMetadata | ( | const std::string & | name, |
| const V3f & | val | ||
| ) |
Set the a V3f value for the given metadata name.
Definition at line 58 of file FieldMetadata.cpp.
References m_owner, m_vecFloatMetadata, and MetadataCallback::metadataHasChanged().
Referenced by Field3DInputFileHDF5::readMetadata().
| void FieldMetadata::setFloatMetadata | ( | const std::string & | name, |
| const float | val | ||
| ) |
Set the a float value for the given metadata name.
Definition at line 69 of file FieldMetadata.cpp.
References m_floatMetadata, m_owner, and MetadataCallback::metadataHasChanged().
Referenced by Field3DInputFileHDF5::readMetadata().
| void FieldMetadata::setVecIntMetadata | ( | const std::string & | name, |
| const V3i & | val | ||
| ) |
Set the a V3i value for the given metadata name.
Definition at line 80 of file FieldMetadata.cpp.
References m_owner, m_vecIntMetadata, and MetadataCallback::metadataHasChanged().
Referenced by Field3DInputFileHDF5::readMetadata().
| void FieldMetadata::setIntMetadata | ( | const std::string & | name, |
| const int | val | ||
| ) |
Set the a int value for the given metadata name.
Definition at line 91 of file FieldMetadata.cpp.
References m_intMetadata, m_owner, and MetadataCallback::metadataHasChanged().
Referenced by Field3DInputFileHDF5::readMetadata(), Field3DInputFile::readProxyLayer(), and Field3DInputFileHDF5::readProxyLayer().
| void FieldMetadata::setStrMetadata | ( | const std::string & | name, |
| const std::string & | val | ||
| ) |
Set the a string value for the given metadata name.
Definition at line 102 of file FieldMetadata.cpp.
References m_owner, m_strMetadata, and MetadataCallback::metadataHasChanged().
Referenced by Field3DInputFileHDF5::readMetadata().
|
private |
V3f metadata.
Definition at line 192 of file FieldMetadata.h.
Referenced by operator=(), setVecFloatMetadata(), and vecFloatMetadata().
|
private |
Float metadata.
Definition at line 194 of file FieldMetadata.h.
Referenced by floatMetadata(), operator=(), and setFloatMetadata().
|
private |
V3i metadata.
Definition at line 196 of file FieldMetadata.h.
Referenced by operator=(), setVecIntMetadata(), and vecIntMetadata().
|
private |
Int metadata.
Definition at line 198 of file FieldMetadata.h.
Referenced by intMetadata(), operator=(), and setIntMetadata().
|
private |
String metadata.
Definition at line 200 of file FieldMetadata.h.
Referenced by operator=(), setStrMetadata(), and strMetadata().
|
private |
Pointer to owner. It is assumed that this has a lifetime at least as long as the Metadata instance.
Definition at line 204 of file FieldMetadata.h.
Referenced by setFloatMetadata(), setIntMetadata(), setStrMetadata(), setVecFloatMetadata(), and setVecIntMetadata().