//---------------------------------------------- Constructors - destructor ClearCommand::ClearCommand ( Drawing & rDrawing, string const & rParameters ) : Command ( rDrawing, false ), mList ( rDrawing.GetList( ) ) { bool error = ( "" == rParameters ); // TODO accept whitespaces if ( !mError && error ) { mError = true; mErrorMessage = "CLEAR takes no parameter"; } #ifdef DEBUG cout << "# Calling constructor of <ClearCommand>" << endl; #endif } //----- End of ClearCommand