#include <wmaattribute.h>
Public Types | |
enum | AttributeTypes { UnicodeType = 0, BytesType = 1, BoolType = 2, DWordType = 3, QWordType = 4, WordType = 5 } |
Public Member Functions | |
Attribute (const Attribute &item) | |
Attribute (const String &key, bool value) | |
Attribute (const String &key, unsigned short value) | |
Attribute (const String &key, unsigned long long value) | |
Attribute (const String &key, unsigned int value) | |
Attribute (const String &key, const ByteVector &value) | |
Attribute (const String &key, const String &value) | |
Attribute () | |
String | name () const |
ByteVector | render () const |
ByteVector | toByteVector () const |
int | toInt () const |
long long | toLongLong () const |
String | toString () const |
AttributeTypes | type () const |
virtual | ~Attribute () |
Protected Member Functions | |
Attribute (WMA::File &file) | |
bool | parse (WMA::File &file) |
Private Attributes | |
AttributePrivate * | d |
Friends | |
class | File |
Classes | |
class | AttributePrivate |
Definition at line 34 of file wmaattribute.h.
enum AttributeTypes |
Enum of types an Attribute can have.
Definition at line 43 of file wmaattribute.h.
Attribute | ( | ) |
Constructs an empty attribute.
Attribute | ( | const String & | key, | |
const String & | value | |||
) |
Constructs an attribute with key and value.
Attribute | ( | const String & | key, | |
const ByteVector & | value | |||
) |
Attribute | ( | const String & | key, | |
unsigned int | value | |||
) |
Attribute | ( | const String & | key, | |
unsigned long long | value | |||
) |
Attribute | ( | const String & | key, | |
unsigned short | value | |||
) |
Attribute | ( | const String & | key, | |
bool | value | |||
) |
virtual ~Attribute | ( | ) | [virtual] |
Destroys the attribute.
String name | ( | ) | const |
Returns the name.
bool parse | ( | WMA::File & | file | ) | [protected] |
ByteVector render | ( | ) | const |
ByteVector toByteVector | ( | ) | const |
Returns the value as a ByteVector.
int toInt | ( | ) | const |
Returns the value as an integer.
long long toLongLong | ( | ) | const |
Returns the value as a long long.
String toString | ( | ) | const |
Returns the value as a String.
AttributeTypes type | ( | ) | const |
Returns type of the value.
friend class File [friend] |
Definition at line 36 of file wmaattribute.h.
AttributePrivate* d [private] |
Definition at line 116 of file wmaattribute.h.