Attribute Class Reference

#include <wmaattribute.h>

List of all members.

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


Detailed Description

Definition at line 34 of file wmaattribute.h.


Member Enumeration Documentation

enum AttributeTypes

Enum of types an Attribute can have.

Enumerator:
UnicodeType 
BytesType 
BoolType 
DWordType 
QWordType 
WordType 

Definition at line 43 of file wmaattribute.h.


Constructor & Destructor Documentation

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 
)

Attribute ( const Attribute item  ) 

Construct an attribute as a copy of item.

virtual ~Attribute (  )  [virtual]

Destroys the attribute.

Attribute ( WMA::File file  )  [protected]


Member Function Documentation

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.


Friends And Related Function Documentation

friend class File [friend]

Definition at line 36 of file wmaattribute.h.


Member Data Documentation

AttributePrivate* d [private]

Definition at line 116 of file wmaattribute.h.


The documentation for this class was generated from the following file:
Generated on Mon Aug 6 21:24:54 2007 for plai by  doxygen 1.5.1