20 #ifndef __APRILMODULE_INC__
21 #define __APRILMODULE_INC__
29 #include <libbbb/1/refcnt.h>
59 AprilModule :
public libbbb::RefCnt,
public MemTrack {
100 virtual void insertCommands (
CommandMap * cm ) = 0;
103 virtual void removeCommands (
CommandMap * cm ) = 0;
106 virtual QString name (
void ) = 0;
116 static void errorNumberOfArguments(QString &s_err);
117 static void errorOneArgumentExpected(QString &s_err);
118 static void errorNoAssocFile(
World *w, QString &s_err);
119 static void errorEnergyInteger(QString &s_err);
120 static void errorUnknownOption(QString &s_err,
const QString &s_tk);
121 static void errorIntegerExpected(QString &s_err,
const QString &s_tk);
122 static void errorIdExpected(QString &s_err,
const QString &s_tk);
123 static void errorNoCurrentWorld(QString &s_err);
129 static QString getCLUsage (
const QString & s_name );
132 static bool setUsage (
133 const QString & s_name,
134 const QStringList & usage,
135 const QStringList & usage_descr,
136 const QStringList & opts,
137 const QList<QStringList> & opts_descr,
138 const QStringList & obs
143 typedef QString ( * arg0Func) ( void );
146 typedef QString ( * arg1Func) (
const QString & s_arg_1,
const AaToken & tk1 );
149 typedef QString ( * arg0WFunc) (
World * w );
152 typedef QString ( * arg1WFunc) (
154 const QString & s_arg_1,
159 typedef QString ( * argW2Func) (
160 World * w,
const QString & s_arg_1,
const AaToken & tk1,
161 const QString & s_arg_2,
const AaToken & tk2 );
164 typedef QString ( * argA0Func) (
Actor * a );
167 typedef QString ( * argAIdFunc) (
Actor * a, ID id );
172 static bool getUIntArg (
182 static bool funcArg0 (
183 const QString & s_cmd,
190 static bool funcArg1 (
191 const QString & s_cmd,
198 static bool funcArg0W (
199 const QString & s_cmd,
206 static bool funcArg1W (
207 const QString & s_cmd,
215 static bool funcArg_W2 (
216 const QString & s_cmd,
224 static bool funcArg_A0 (
225 const QString & s_cmd,
232 static bool funcArg_AID (
233 const QString & s_cmd,
255 #endif // __APRILMODULE_INC__