std::vector< Command* > d_commands;
std::vector< int > d_command_types;
public:
+ /** virtual destructor */
+ virtual ~Model() {}
/** add command */
virtual void addCommand( Command* c, int c_type ){
d_commands.push_back( c );
d_command_types.push_back( c_type );
}
/** get number of commands to report */
- int getNumCommands() { return (int)d_commands.size(); }
+ size_t getNumCommands() { return d_commands.size(); }
/** get command */
Command* getCommand( int i ) { return d_commands[i]; }
/** get type of command */