diff --git a/include/sot/core/derivator.hh b/include/sot/core/derivator.hh index 0178cab991cea6513f2be47527f13d4dc6fa2d06..4ba09b1f4044273cb6d223476a9e970756749918 100644 --- a/include/sot/core/derivator.hh +++ b/include/sot/core/derivator.hh @@ -59,6 +59,7 @@ class Derivator public: /* --- CONSTRUCTION --- */ static std::string getTypeName( void ) { return "Unknown"; } + virtual const std::string& getClassName( void ) const { return CLASS_NAME; } static const std::string CLASS_NAME; Derivator( const std::string& name ) @@ -75,7 +76,6 @@ class Derivator timestepSIN.setKeepReference(true); } - virtual ~Derivator( void ) {}; public: /* --- SIGNAL --- */ diff --git a/include/sot/core/gripper-control.hh b/include/sot/core/gripper-control.hh index 5a1298736072cce23b7b6fa41353285520ad9d71..69dbe823784631c1b381f553290ef597244c17e1 100644 --- a/include/sot/core/gripper-control.hh +++ b/include/sot/core/gripper-control.hh @@ -112,7 +112,7 @@ class SOTGRIPPERCONTROL_EXPORT GripperControlPlugin GripperControlPlugin( const std::string& name ); virtual ~GripperControlPlugin( void ); - + virtual const std::string& getClassName( void ) const { return CLASS_NAME; } public: /* --- SIGNAL --- */ /* --- INPUTS --- */ diff --git a/include/sot/core/reader.hh b/include/sot/core/reader.hh index 750e313161752d40c19abc525e174cb131f040a2..b855a77c90418b61665ed372118d5cd1f1f7913f 100644 --- a/include/sot/core/reader.hh +++ b/include/sot/core/reader.hh @@ -72,7 +72,7 @@ class SOTREADER_EXPORT sotReader { public: static const std::string CLASS_NAME; - virtual const std::string& getClassName( void ) { return CLASS_NAME; } + virtual const std::string& getClassName( void ) const { return CLASS_NAME; } public: diff --git a/include/sot/core/sequencer.hh b/include/sot/core/sequencer.hh index 1466b6766722ad337ddbfa2407f094ac5e9e8396..2482d8ae298395a7ca302fa1b37ad169752a38fe 100644 --- a/include/sot/core/sequencer.hh +++ b/include/sot/core/sequencer.hh @@ -67,6 +67,7 @@ namespace dynamicgraph { { public: static const std::string CLASS_NAME; + virtual const std::string& getClassName( void ) const { return CLASS_NAME; } public: class sotEventAbstract