sotReader Class Reference

#include <sot/core/reader.hh>

Inheritance diagram for sotReader:
[legend]

Public Member Functions

 sotReader (const std::string n)
 
virtual ~sotReader (void)
 
void load (const std::string &filename)
 
void clear (void)
 
void rewind (void)
 
void display (std::ostream &os) const
 
virtual void initCommands ()
 
- Public Member Functions inherited from dynamicgraph::Entity
 Entity (const std::string &name)
 
virtual ~Entity ()
 
const std::string & getName () const
 
virtual const std::string & getClassName () const=0
 
virtual std::string getDocString () const
 
bool hasSignal (const std::string &signame) const
 
SignalBase< int > & getSignal (const std::string &signalName)
 
const SignalBase< int > & getSignal (const std::string &signalName) const
 
std::ostream & displaySignalList (std::ostream &os) const
 
virtual std::ostream & writeGraph (std::ostream &os) const
 
virtual std::ostream & writeCompletionList (std::ostream &os) const
 
virtual void commandLine (const std::string &cmdLine, std::istringstream &cmdArgs, std::ostream &os)
 
virtual SignalBase< int > * test ()
 
virtual void test2 (SignalBase< int > *)
 
const std::string & getCommandList () const
 
CommandMap_t getNewStyleCommandMap ()
 
command::CommandgetNewStyleCommand (const std::string &cmdName)
 
SignalMap getSignalMap () const
 

Public Attributes

SignalPtr< Flags, int > selectionSIN
 
SignalTimeDependent< ml::Vector, int > vectorSOUT
 
SignalTimeDependent< ml::Matrix, int > matrixSOUT
 

Protected Types

typedef std::list< std::vector< double > > DataType
 

Protected Member Functions

ml::VectorgetNextData (ml::Vector &res, const unsigned int time)
 
ml::MatrixgetNextMatrix (ml::Matrix &res, const unsigned int time)
 
void resize (const int &nbRow, const int &nbCol)
 
- Protected Member Functions inherited from dynamicgraph::Entity
void addCommand (const std::string &name, command::Command *command)
 
void entityRegistration ()
 
void entityDeregistration ()
 
void signalRegistration (const SignalArray< int > &signals)
 
void signalDeregistration (const std::string &name)
 

Protected Attributes

DataType dataSet
 
DataType::const_iterator currentData
 
bool iteratorSet
 
unsigned int nbRows
 
unsigned int nbCols
 
- Protected Attributes inherited from dynamicgraph::Entity
std::string name
 
SignalMap signalMap
 
CommandMap_t commandMap
 

Additional Inherited Members

- Public Types inherited from dynamicgraph::Entity
typedef std::map< std::string, SignalBase< int > * > SignalMap
 
typedef std::map< const std::string, command::Command *> CommandMap_t
 

Member Typedef Documentation

◆ DataType

typedef std::list< std::vector<double> > sotReader::DataType
protected

Constructor & Destructor Documentation

◆ sotReader()

sotReader::sotReader ( const std::string  n)

◆ ~sotReader()

virtual sotReader::~sotReader ( void  )
inlinevirtual

Member Function Documentation

◆ clear()

void sotReader::clear ( void  )

◆ display()

void sotReader::display ( std::ostream &  os) const
virtual

Reimplemented from dynamicgraph::Entity.

◆ getNextData()

ml::Vector& sotReader::getNextData ( ml::Vector res,
const unsigned int  time 
)
protected

◆ getNextMatrix()

ml::Matrix& sotReader::getNextMatrix ( ml::Matrix res,
const unsigned int  time 
)
protected

◆ initCommands()

virtual void sotReader::initCommands ( )
virtual

◆ load()

void sotReader::load ( const std::string &  filename)

◆ resize()

void sotReader::resize ( const int &  nbRow,
const int &  nbCol 
)
protected

◆ rewind()

void sotReader::rewind ( void  )

Member Data Documentation

◆ currentData

DataType::const_iterator sotReader::currentData
protected

◆ dataSet

DataType sotReader::dataSet
protected

◆ iteratorSet

bool sotReader::iteratorSet
protected

◆ matrixSOUT

SignalTimeDependent<ml::Matrix,int> sotReader::matrixSOUT

◆ nbCols

unsigned int sotReader::nbCols
protected

◆ nbRows

unsigned int sotReader::nbRows
protected

◆ selectionSIN

SignalPtr< Flags,int > sotReader::selectionSIN

◆ vectorSOUT

SignalTimeDependent<ml::Vector,int> sotReader::vectorSOUT