LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::saveLnc Class Reference

class to save lnc-files (ascii format to store feature vectors) More...

#include <ltiLncFeatureFile.h>

Inheritance diagram for lti::saveLnc:
Inheritance graph
[legend]
Collaboration diagram for lti::saveLnc:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 lncFeatureFile parameters class More...

Public Member Functions

 saveLnc ()
 saveLnc (const parameters &par)
const parametersgetParameters () const
virtual functorclone () const
bool apply (const dvector &vct, const patternId &id)
void reset ()
bool writeCncFile (const std::string &filename)
void setNameToIdMap (const std::map< std::string, int > &newMap)

Detailed Description

class to save lnc-files (ascii format to store feature vectors)

See also:
loadLnc

Constructor & Destructor Documentation

lti::saveLnc::saveLnc (  ) 

Default constructor.

Referenced by clone().

lti::saveLnc::saveLnc ( const parameters par  ) 

Constructor with parameters.


Member Function Documentation

bool lti::saveLnc::apply ( const dvector vct,
const patternId id 
)

save the vector at the end of the file.

Parameters:
vct the vector object to be saved
id the id of the class the vector belongs to.
Returns:
true if everything is ok, otherwise a lti::exception will be thrown.
virtual functor* lti::saveLnc::clone (  )  const [inline, virtual]

clone member

Implements lti::functor.

References saveLnc().

const parameters& lti::saveLnc::getParameters (  )  const

get the used parameters

Reimplemented from lti::lncFeatureFile.

void lti::saveLnc::reset (  ) 

restart writing the file

void lti::saveLnc::setNameToIdMap ( const std::map< std::string, int > &  newMap  ) 

set the current name to object id table

bool lti::saveLnc::writeCncFile ( const std::string &  filename  ) 

write the whole name-id map to the given cnc file (the contents of the file will be destroyed if the file already exists)

Reimplemented from lti::lncFeatureFile.


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

Generated on Sat Apr 10 15:28:04 2010 for LTI-Lib by Doxygen 1.6.1