Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2008, 2:56:09 AM (16 years ago)
Author:
landauf
Message:

changes in CommandExecutor and CommandEvaluation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/CommandEvaluation.h

    r1402 r1417  
    5555    class _CoreExport CommandEvaluation
    5656    {
     57        friend class CommandExecutor;
     58
    5759        public:
    5860            CommandEvaluation();
     
    6668
    6769            bool isValid() const;
    68 
    69             inline Identifier* getIdentifier() const
    70                 { return this->functionclass_; }
    71             inline void setIdentifier(Identifier* identifier)
    72                 { this->functionclass_ = identifier; }
    73             inline ConsoleCommand* getFunction() const
    74                 { return this->function_; }
    75             inline void setFunction(ConsoleCommand* command)
    76                 { this->function_ = command; }
    77 
    78             inline const std::string& getOriginalCommand() const
    79                 { return this->originalCommand_; }
    80             inline const std::string& getCommand() const
    81                 { return this->command_; }
    82             inline void setCommand(const std::string& command)
    83                 { this->command_ = command; }
    84             inline const CommandState& getState() const
    85                 { return this->state_; }
    86             inline void setState(CommandState state)
    87                 { this->state_ = state; }
    88             inline SubString& getTokens()
    89                 { return this->commandTokens_; }
    90             inline void setTokens(const std::string& command)
    91                 { this->commandTokens_.split(command, " ", SubString::WhiteSpaces, false, '\\', false, '"', false, '(', ')', false, '\0'); }
    92             inline const std::string& getError() const
    93                 { return this->errorMessage_; }
    94             inline void setError(const std::string& error)
    95                 { this->errorMessage_ = error; }
    96             inline bool isNewCommand() const
    97                 { return this->bNewCommand_; }
    98             inline void setNewCommand(bool bNewCommand)
    99                 { this->bNewCommand_ = bNewCommand; }
    100 
    101             inline std::list<std::pair<const std::string*, const std::string*> >& getListOfPossibleIdentifiers()
    102                 { return this->listOfPossibleIdentifiers_; }
    103             inline std::list<std::pair<const std::string*, const std::string*> >& getListOfPossibleFunctions()
    104                 { return this->listOfPossibleFunctions_; }
    105             inline std::list<std::pair<const std::string*, const std::string*> >& getListOfPossibleArguments()
    106                 { return this->listOfPossibleArguments_; }
    10770
    10871            inline void setAdditionalParameter(const std::string& param)
Note: See TracChangeset for help on using the changeset viewer.