Public Member Functions | Static Public Member Functions | Private Attributes | Friends

alize::AudioFrame Class Reference

#include <AudioFrame.h>

Inheritance diagram for alize::AudioFrame:
Inheritance graph
[legend]
Collaboration diagram for alize::AudioFrame:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AudioFrame (long v=0, bool isValid=false)
 AudioFrame (const AudioFrame &)
const AudioFrameoperator= (const AudioFrame &)
bool operator== (const AudioFrame &) const
bool operator!= (const AudioFrame &) const
virtual ~AudioFrame ()
bool isValid () const
void setValidity (bool validity)
void setData (long v)
long getData () const
virtual String getClassName () const
virtual String toString () const

Static Public Member Functions

static AudioFramecreate (long value=0, bool isValid=false)

Private Attributes

bool _isValid
long _value

Friends

class TestAudioFrame

Detailed Description

...

Author:
Frederic Wils frederic.wils@lia.univ-avignon.fr
Version:
1.0
Date:
2003

Definition at line 78 of file AudioFrame.h.


Constructor & Destructor Documentation

AudioFrame::AudioFrame ( long  v = 0,
bool  isValid = false 
) [explicit]

Create an AudioFrame object with default values

Parameters:
v= value to store
isValidtrue = the frame is valid; false = the frame is not valid

Definition at line 65 of file AudioFrame.cpp.

Referenced by create().

AudioFrame::AudioFrame ( const AudioFrame f )

Definition at line 75 of file AudioFrame.cpp.

AudioFrame::~AudioFrame (  ) [virtual]

Definition at line 112 of file AudioFrame.cpp.


Member Function Documentation

AudioFrame & AudioFrame::create ( long  value = 0,
bool  isValid = false 
) [static]

See the constructor

Definition at line 68 of file AudioFrame.cpp.

References alize::Object::assertMemoryIsAllocated(), and AudioFrame().

String AudioFrame::getClassName (  ) const [virtual]

Returns the name of the class

Returns:
the name of the class of the object as a String

Implements alize::Object.

Definition at line 102 of file AudioFrame.cpp.

long AudioFrame::getData (  ) const

Returns the value of the frame

Returns:
the value of the frame

Definition at line 100 of file AudioFrame.cpp.

References _value.

bool AudioFrame::isValid (  ) const

Tells whether or not this AudioFrame is valid.

Returns:
true if this AudioFrame is valid; false otherwise.

Definition at line 94 of file AudioFrame.cpp.

References _isValid.

bool AudioFrame::operator!= ( const AudioFrame c ) const

Definition at line 92 of file AudioFrame.cpp.

const AudioFrame & AudioFrame::operator= ( const AudioFrame f )

Definition at line 78 of file AudioFrame.cpp.

References _isValid, and _value.

bool AudioFrame::operator== ( const AudioFrame f ) const

Definition at line 85 of file AudioFrame.cpp.

References _isValid, and _value.

void AudioFrame::setData ( long  v )

Sets the value of the frame

Parameters:
vthe value

Definition at line 98 of file AudioFrame.cpp.

References _value.

Referenced by alize::AudioFileReader::readFrame().

void AudioFrame::setValidity ( bool  validity )

Sets the validity of this AudioFrame.

Parameters:
validitytrue or false.

Definition at line 96 of file AudioFrame.cpp.

References _isValid.

Referenced by alize::AudioFileReader::readFrame().

String AudioFrame::toString (  ) const [virtual]

This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object

Returns:
a description of the object

Reimplemented from alize::Object.

Definition at line 104 of file AudioFrame.cpp.

References _isValid, _value, and alize::String::valueOf().


Friends And Related Function Documentation

friend class TestAudioFrame [friend]

Definition at line 80 of file AudioFrame.h.


Member Data Documentation

Definition at line 126 of file AudioFrame.h.

Referenced by isValid(), operator=(), operator==(), setValidity(), and toString().

long alize::AudioFrame::_value [private]

Definition at line 127 of file AudioFrame.h.

Referenced by getData(), operator=(), operator==(), setData(), and toString().


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