@@ -112,60 +112,6 @@ static std::string readLineStr( istringstream& args )
112
112
return res;
113
113
}
114
114
*/
115
- #define ADD_COMMAND (name, def ) \
116
- if (commandMap.count(prefix + name) != 0 ) { \
117
- DG_THROW ExceptionFactory (ExceptionFactory::OBJECT_CONFLICT, \
118
- " Command " + prefix + name + \
119
- " already registered in Entity." ); \
120
- } \
121
- commandMap.insert(std::make_pair(prefix + name, def))
122
-
123
- void PeriodicCall::addSpecificCommands (Entity &ent,
124
- Entity::CommandMap_t &commandMap,
125
- const std::string &prefix) {
126
- using namespace dynamicgraph ::command;
127
-
128
- /* Explicit typage to help the compiler. */
129
- boost::function<void (const std::string &)>
130
- addSignal = boost::bind (&PeriodicCall::addSignal, this , _1),
131
- rmSignal = boost::bind (&PeriodicCall::rmSignal, this , _1);
132
- boost::function<void (const std::string &, const unsigned int &)>
133
- addDownsampledSignal =
134
- boost::bind (&PeriodicCall::addDownsampledSignal, this , _1, _2);
135
- boost::function<void (void )> clear = boost::bind (&PeriodicCall::clear, this );
136
- boost::function<void (std::ostream &)> disp =
137
- boost::bind (&PeriodicCall::display, this , _1);
138
-
139
- ADD_COMMAND (
140
- " addSignal" ,
141
- makeCommandVoid1 (ent, addSignal,
142
- docCommandVoid1 (" Add the signal to the refresh list" ,
143
- " string (sig name)" )));
144
- ADD_COMMAND (" addDownsampledSignal" ,
145
- makeCommandVoid2 (
146
- ent, addDownsampledSignal,
147
- docCommandVoid2 (
148
- " Add the signal to the refresh list" , " string (sig name)" ,
149
- " unsigned int (downsampling factor, 1 means every time, "
150
- " 2 means every other time, etc..." )));
151
- ADD_COMMAND (
152
- " rmSignal" ,
153
- makeCommandVoid1 (ent, rmSignal,
154
- docCommandVoid1 (" Remove the signal to the refresh list" ,
155
- " string (sig name)" )));
156
- ADD_COMMAND (
157
- " clear" ,
158
- makeCommandVoid0 (
159
- ent, clear,
160
- docCommandVoid0 (
161
- " Clear all signals and commands from the refresh list." )));
162
-
163
- ADD_COMMAND (" disp" ,
164
- makeCommandVerbose (
165
- ent, disp,
166
- docCommandVerbose (
167
- " Print the list of to-refresh signals and commands." )));
168
- }
169
115
170
116
/*
171
117
* Local variables:
0 commit comments