![]() |
OpenDAFF C++ API
v1.7
Directional Audio File Format
|
#include <DAFFMetadataImpl.h>
Public Member Functions | |
| DAFFMetadataImpl () | |
| ~DAFFMetadataImpl () | |
| int | load (void *pData, size_t &iBytesRead) |
| bool | isEmpty () const |
| Returns if metadata does not contain any keys. More... | |
| bool | hasKey (const std::string &sKey) const |
| Checks for existence of a key. More... | |
| void | getKeys (std::vector< std::string > &vsKeyList) const |
| Returns a list of all keys. More... | |
| int | getKeyType (const std::string &sKey) const |
| Returns the datatype of a key. More... | |
| std::string | getKeyString (const std::string &sKey) const |
| Returns the value of a string key. More... | |
| bool | getKeyBool (const std::string &sKey) const |
| Returns the value (true|false) of a boolean key. More... | |
| int | getKeyInt (const std::string &sKey) const |
| Returns the value of a integer number key. More... | |
| double | getKeyFloat (const std::string &sKey) const |
| Returns the value of a floating-point number key. More... | |
| std::string | toString () const |
| Return information on the metadata as string. More... | |
Public Member Functions inherited from DAFFMetadata | |
| virtual | ~DAFFMetadata () |
| Destructor. More... | |
Additional Inherited Members | |
Public Types inherited from DAFFMetadata | |
| enum | { DAFF_BOOL =0, DAFF_INT =1, DAFF_FLOAT =2, DAFF_STRING =3 } |
| Metadata types. More... | |
Static Public Member Functions inherited from DAFFMetadata | |
| static std::string | GetKeyTypeString (int iType) |
| Returns a string describing the key type. More... | |
Definition at line 21 of file DAFFMetadataImpl.h.
| DAFFMetadataImpl::DAFFMetadataImpl | ( | ) |
Definition at line 58 of file DAFFMetadataImpl.cpp.
| DAFFMetadataImpl::~DAFFMetadataImpl | ( | ) |
Definition at line 129 of file DAFFMetadataImpl.cpp.
|
virtual |
Returns the value (true|false) of a boolean key.
Implements DAFFMetadata.
Definition at line 184 of file DAFFMetadataImpl.cpp.
|
virtual |
Returns the value of a floating-point number key.
Note: This method may also be called for INT keys
Implements DAFFMetadata.
Definition at line 202 of file DAFFMetadataImpl.cpp.
|
virtual |
Returns the value of a integer number key.
Implements DAFFMetadata.
Definition at line 193 of file DAFFMetadataImpl.cpp.
|
virtual |
Returns a list of all keys.
Implements DAFFMetadata.
Definition at line 145 of file DAFFMetadataImpl.cpp.
|
virtual |
Returns the value of a string key.
Note: This method may be called for every key, no matter what type
Implements DAFFMetadata.
Definition at line 156 of file DAFFMetadataImpl.cpp.
|
virtual |
Returns the datatype of a key.
Implements DAFFMetadata.
Definition at line 151 of file DAFFMetadataImpl.cpp.
|
virtual |
Checks for existence of a key.
Implements DAFFMetadata.
Definition at line 141 of file DAFFMetadataImpl.cpp.
|
virtual |
Returns if metadata does not contain any keys.
Implements DAFFMetadata.
Definition at line 136 of file DAFFMetadataImpl.cpp.
| int DAFFMetadataImpl::load | ( | void * | pData, |
| size_t & | iBytesRead | ||
| ) |
Definition at line 60 of file DAFFMetadataImpl.cpp.
|
virtual |
Return information on the metadata as string.
Implements DAFFMetadata.
Definition at line 216 of file DAFFMetadataImpl.cpp.