Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dynamicgraph::CustomEntity Class Reference
Inheritance diagram for dynamicgraph::CustomEntity:
Inheritance graph
[legend]

Public Member Functions

void addSignal ()
 
void cmd_verbose (std::ostream &oss)
 
 CustomEntity (const std::string &n)
 
 CustomEntity (const std::string &n)
 
 CustomEntity (const std::string &n)
 
 CustomEntity (const std::string &n)
 
 CustomEntity (const std::string &n)
 
 CustomEntity (const std::string &n)
 
void four_args (const int &, const int &, const int &, const int &)
 
virtual const std::string & getClassName () const
 
virtual const std::string & getClassName () const
 
virtual const std::string & getClassName () const
 
virtual const std::string & getClassName () const
 
virtual const std::string & getClassName () const
 
virtual const std::string & getClassName () const
 
void one_arg (const int &)
 
int one_arg_ret (const int &)
 
void rmValidSignal ()
 
void testDebugTrace ()
 
void testDebugTrace ()
 
void testDebugTrace ()
 
void three_args (const int &, const int &, const int &)
 
void two_args (const int &, const int &)
 
std::string two_args_ret (const int &, const int &)
 
double & update (double &res, const sigtime_t &inTime)
 
void zero_arg ()
 
 ~CustomEntity ()
 
 ~CustomEntity ()
 
 ~CustomEntity ()
 
 ~CustomEntity ()
 
 ~CustomEntity ()
 
- Public Member Functions inherited from dynamicgraph::Entity
virtual void display (std::ostream &os) const
 Display information on the entity inside the output stream os. More...
 
std::ostream & displaySignalList (std::ostream &os) const
 Display the list of signals of this entity in output stream os. More...
 
 Entity (const std::string &name)
 
const std::string & getCommandList () const
 
virtual std::string getDocString () const
 Returns the Entity documentation. More...
 
const std::string & getName () const
 
command::CommandgetNewStyleCommand (const std::string &cmdName)
 Provides the pointer towards the Command object cmdName. More...
 
CommandMap_t getNewStyleCommandMap ()
 Provides the std::map where all the commands are registered. More...
 
SignalBase< sigtime_t > & getSignal (const std::string &signalName)
 Provides a reference to the signal named signalName. More...
 
const SignalBase< sigtime_t > & getSignal (const std::string &signalName) const
 Provides a const reference to the signal named signalName. More...
 
SignalMap getSignalMap () const
 Provides a map of all the signals. More...
 
bool hasSignal (const std::string &signame) const
 Test if a signal of name signame is present. More...
 
virtual SignalBase< sigtime_t > * test ()
 
virtual void test2 (SignalBase< sigtime_t > *)
 
virtual std::ostream & writeCompletionList (std::ostream &os) const
 This method is used write in the output stream os the signals names and the commands of the entity. More...
 
virtual std::ostream & writeGraph (std::ostream &os) const
 This method is used to write down in os the edges of the graph by calling the signals writeGraph method. More...
 
virtual ~Entity ()
 
Loggerlogger ()
 
const Loggerlogger () const
 
void sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="")
 Send messages msg with level t. Add string file and line to message. More...
 
void setLoggerVerbosityLevel (LoggerVerbosity lv)
 Specify the verbosity level of the logger. More...
 
LoggerVerbosity getLoggerVerbosityLevel ()
 Get the logger's verbosity level. More...
 
bool setTimeSample (double t)
 Set the time sample. More...
 
double getTimeSample ()
 Get the time sample. More...
 
bool setStreamPrintPeriod (double t)
 Set the period of the stream period. More...
 
double getStreamPrintPeriod ()
 Get the period of the stream period. More...
 

Public Attributes

dynamicgraph::SignalPtr< double, sigtime_tm_sigdSIN
 
dynamicgraph::SignalPtr< double, sigtime_tm_sigdSIN2
 
dynamicgraph::SignalTimeDependent< double, sigtime_tm_sigdTimeDepSOUT
 
double m_value
 
bool test_four_args_
 
bool test_one_arg_
 
bool test_one_arg_ret_
 
bool test_three_args_
 
bool test_two_args_
 
bool test_two_args_ret_
 
bool test_zero_arg_
 

Static Public Attributes

static const std::string CLASS_NAME = "CustomEntity"
 

Additional Inherited Members

- Public Types inherited from dynamicgraph::Entity
typedef std::map< const std::string, command::Command * > CommandMap_t
 
typedef std::map< std::string, SignalBase< sigtime_t > * > SignalMap
 
- Protected Member Functions inherited from dynamicgraph::Entity
void addCommand (const std::string &name, command::Command *command)
 Add a command to Entity. More...
 
void entityDeregistration ()
 
void entityRegistration ()
 
void signalDeregistration (const std::string &name)
 
void signalRegistration (const SignalArray< sigtime_t > &signals)
 
- Protected Attributes inherited from dynamicgraph::Entity
CommandMap_t commandMap
 
Logger logger_
 
std::string name
 
SignalMap signalMap
 

Detailed Description

Definition at line 36 of file command-test.cpp.

Constructor & Destructor Documentation

◆ CustomEntity() [1/6]

dynamicgraph::CustomEntity::CustomEntity ( const std::string &  n)
inlineexplicit

Generating an exception by adding a command which already exist

Definition at line 48 of file command-test.cpp.

◆ ~CustomEntity() [1/5]

dynamicgraph::CustomEntity::~CustomEntity ( )
inline

Definition at line 100 of file command-test.cpp.

◆ CustomEntity() [2/6]

dynamicgraph::CustomEntity::CustomEntity ( const std::string &  n)
inlineexplicit

Definition at line 38 of file debug-logger-winit.cpp.

◆ ~CustomEntity() [2/5]

dynamicgraph::CustomEntity::~CustomEntity ( )
inline

Definition at line 46 of file debug-logger-winit.cpp.

◆ CustomEntity() [3/6]

dynamicgraph::CustomEntity::CustomEntity ( const std::string &  n)
inlineexplicit

Definition at line 37 of file debug-logger.cpp.

◆ ~CustomEntity() [3/5]

dynamicgraph::CustomEntity::~CustomEntity ( )
inline

Definition at line 77 of file debug-logger.cpp.

◆ CustomEntity() [4/6]

dynamicgraph::CustomEntity::CustomEntity ( const std::string &  n)
inlineexplicit

Definition at line 37 of file debug-trace.cpp.

◆ ~CustomEntity() [4/5]

dynamicgraph::CustomEntity::~CustomEntity ( )
inline

Definition at line 40 of file debug-trace.cpp.

◆ CustomEntity() [5/6]

dynamicgraph::CustomEntity::CustomEntity ( const std::string &  n)
inlineexplicit

Definition at line 40 of file tests/entity.cpp.

◆ ~CustomEntity() [5/5]

dynamicgraph::CustomEntity::~CustomEntity ( )
inline

Definition at line 50 of file tests/entity.cpp.

◆ CustomEntity() [6/6]

dynamicgraph::CustomEntity::CustomEntity ( const std::string &  n)
inlineexplicit

Definition at line 26 of file tests/factory.cpp.

Member Function Documentation

◆ addSignal()

void dynamicgraph::CustomEntity::addSignal ( )
inline

Try a second time to generate an exception

Definition at line 52 of file tests/entity.cpp.

◆ cmd_verbose()

void dynamicgraph::CustomEntity::cmd_verbose ( std::ostream &  oss)
inline

Definition at line 126 of file command-test.cpp.

◆ four_args()

void dynamicgraph::CustomEntity::four_args ( const int &  ,
const int &  ,
const int &  ,
const int &   
)
inline

Definition at line 112 of file command-test.cpp.

◆ getClassName() [1/6]

virtual const std::string& dynamicgraph::CustomEntity::getClassName ( ) const
inlinevirtual

Reimplemented from dynamicgraph::Entity.

Definition at line 25 of file tests/factory.cpp.

◆ getClassName() [2/6]

virtual const std::string& dynamicgraph::CustomEntity::getClassName ( ) const
inlinevirtual

Reimplemented from dynamicgraph::Entity.

Definition at line 36 of file debug-logger.cpp.

◆ getClassName() [3/6]

virtual const std::string& dynamicgraph::CustomEntity::getClassName ( ) const
inlinevirtual

Reimplemented from dynamicgraph::Entity.

Definition at line 36 of file debug-trace.cpp.

◆ getClassName() [4/6]

virtual const std::string& dynamicgraph::CustomEntity::getClassName ( ) const
inlinevirtual

Reimplemented from dynamicgraph::Entity.

Definition at line 37 of file debug-logger-winit.cpp.

◆ getClassName() [5/6]

virtual const std::string& dynamicgraph::CustomEntity::getClassName ( ) const
inlinevirtual

Reimplemented from dynamicgraph::Entity.

Definition at line 39 of file tests/entity.cpp.

◆ getClassName() [6/6]

virtual const std::string& dynamicgraph::CustomEntity::getClassName ( ) const
inlinevirtual

Reimplemented from dynamicgraph::Entity.

Definition at line 47 of file command-test.cpp.

◆ one_arg()

void dynamicgraph::CustomEntity::one_arg ( const int &  )
inline

Definition at line 104 of file command-test.cpp.

◆ one_arg_ret()

int dynamicgraph::CustomEntity::one_arg_ret ( const int &  )
inline

Definition at line 116 of file command-test.cpp.

◆ rmValidSignal()

void dynamicgraph::CustomEntity::rmValidSignal ( )
inline

Definition at line 63 of file tests/entity.cpp.

◆ testDebugTrace() [1/3]

void dynamicgraph::CustomEntity::testDebugTrace ( )
inline

Test debugging information when entering the code.

Intermediate test.

Test debugging information when going out of the code.

Definition at line 43 of file debug-trace.cpp.

◆ testDebugTrace() [2/3]

void dynamicgraph::CustomEntity::testDebugTrace ( )
inline

Definition at line 47 of file debug-logger-winit.cpp.

◆ testDebugTrace() [3/3]

void dynamicgraph::CustomEntity::testDebugTrace ( )
inline

Definition at line 78 of file debug-logger.cpp.

◆ three_args()

void dynamicgraph::CustomEntity::three_args ( const int &  ,
const int &  ,
const int &   
)
inline

Definition at line 108 of file command-test.cpp.

◆ two_args()

void dynamicgraph::CustomEntity::two_args ( const int &  ,
const int &   
)
inline

Definition at line 106 of file command-test.cpp.

◆ two_args_ret()

std::string dynamicgraph::CustomEntity::two_args_ret ( const int &  ,
const int &   
)
inline

Definition at line 121 of file command-test.cpp.

◆ update()

double& dynamicgraph::CustomEntity::update ( double &  res,
const sigtime_t inTime 
)
inline

Definition at line 68 of file tests/entity.cpp.

◆ zero_arg()

void dynamicgraph::CustomEntity::zero_arg ( )
inline

Definition at line 102 of file command-test.cpp.

Member Data Documentation

◆ CLASS_NAME

const std::string CustomEntity::CLASS_NAME = "CustomEntity"
static

Definition at line 38 of file command-test.cpp.

◆ m_sigdSIN

dynamicgraph::SignalPtr<double, sigtime_t> dynamicgraph::CustomEntity::m_sigdSIN

Definition at line 35 of file tests/entity.cpp.

◆ m_sigdSIN2

dynamicgraph::SignalPtr<double, sigtime_t> dynamicgraph::CustomEntity::m_sigdSIN2

Definition at line 35 of file tests/entity.cpp.

◆ m_sigdTimeDepSOUT

dynamicgraph::SignalTimeDependent<double, sigtime_t> dynamicgraph::CustomEntity::m_sigdTimeDepSOUT

Definition at line 36 of file tests/entity.cpp.

◆ m_value

double dynamicgraph::CustomEntity::m_value

Definition at line 75 of file tests/entity.cpp.

◆ test_four_args_

bool dynamicgraph::CustomEntity::test_four_args_

Definition at line 43 of file command-test.cpp.

◆ test_one_arg_

bool dynamicgraph::CustomEntity::test_one_arg_

Definition at line 40 of file command-test.cpp.

◆ test_one_arg_ret_

bool dynamicgraph::CustomEntity::test_one_arg_ret_

Definition at line 44 of file command-test.cpp.

◆ test_three_args_

bool dynamicgraph::CustomEntity::test_three_args_

Definition at line 42 of file command-test.cpp.

◆ test_two_args_

bool dynamicgraph::CustomEntity::test_two_args_

Definition at line 41 of file command-test.cpp.

◆ test_two_args_ret_

bool dynamicgraph::CustomEntity::test_two_args_ret_

Definition at line 45 of file command-test.cpp.

◆ test_zero_arg_

bool dynamicgraph::CustomEntity::test_zero_arg_

Definition at line 39 of file command-test.cpp.


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


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Aug 2 2024 08:36:39