semaine::cms::message::SEMAINEFeatureMessage Class Reference

#include <SEMAINEFeatureMessage.h>

Inheritance diagram for semaine::cms::message::SEMAINEFeatureMessage:
semaine::cms::message::SEMAINEMessage

List of all members.

Public Member Functions

 SEMAINEFeatureMessage (const Message *message) throw (semaine::cms::exceptions::MessageFormatException)
virtual ~SEMAINEFeatureMessage ()
std::vector< float > getFeatureVector () throw (CMSException, semaine::cms::exceptions::MessageFormatException)
std::vector< std::string > getFeatureNames () throw (CMSException)
bool hasFeatureNames ()
void setFeatureNames (std::vector< std::string > const &names) throw (semaine::cms::exceptions::MessageFormatException)

Protected Member Functions

void readFromBytesMessage (const BytesMessage *bm) throw (CMSException, semaine::cms::exceptions::MessageFormatException)
void readFromTextMessage (const TextMessage *tm) throw (CMSException)

Protected Attributes

std::vector< float > features
std::vector< std::string > featureNames

Constructor & Destructor Documentation

semaine::cms::message::SEMAINEFeatureMessage::SEMAINEFeatureMessage ( const Message *  message  )  throw (semaine::cms::exceptions::MessageFormatException)
semaine::cms::message::SEMAINEFeatureMessage::~SEMAINEFeatureMessage (  )  [virtual]

Member Function Documentation

std::vector< std::string > semaine::cms::message::SEMAINEFeatureMessage::getFeatureNames (  )  throw (CMSException)

Get the list of feature names if available.

Returns:
an array of strings containing the names of features if available, or an empty vector if the feature names are not available.
Exceptions:
JMSException 
std::vector< float > semaine::cms::message::SEMAINEFeatureMessage::getFeatureVector (  )  throw (CMSException, semaine::cms::exceptions::MessageFormatException)

Get the feature vector from the message.

Returns:
the feature vector contained in the message.
Exceptions:
CMSException 
MessageFormatException 
bool semaine::cms::message::SEMAINEFeatureMessage::hasFeatureNames (  )  [inline]

Check if the feature message has a list of feature names set.

void semaine::cms::message::SEMAINEFeatureMessage::readFromBytesMessage ( const BytesMessage *  bm  )  throw (CMSException, semaine::cms::exceptions::MessageFormatException) [protected]
void semaine::cms::message::SEMAINEFeatureMessage::readFromTextMessage ( const TextMessage *  tm  )  throw (CMSException) [protected]
void semaine::cms::message::SEMAINEFeatureMessage::setFeatureNames ( std::vector< std::string > const &  names  )  throw (semaine::cms::exceptions::MessageFormatException) [inline]

Set the feature names corresponding to the features.

Parameters:
names a vector of feature names, which must correspond in number and in their order to the features in this message.
Exceptions:
MessageFormatException if the number of feature names does not match the number of features saved in the message

Member Data Documentation

std::vector<std::string> semaine::cms::message::SEMAINEFeatureMessage::featureNames [protected]

The documentation for this class was generated from the following files:
Generated on Tue Dec 14 17:13:18 2010 for SEMAINE by  doxygen 1.6.3