Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 19, 2010, 2:14:54 AM (14 years ago)
Author:
landauf
Message:

Moved ability to possess descriptions from Executor to ConsoleCommand, since no other executors use this feature. Also simplified this code a little by introducing a new shortcut in Language.h. XMLPort has to use a temporary solution for descriptions without Language support atm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/Executor.h

    r7177 r7186  
    6161
    6262            bool evaluate(const std::string& params, MultiType param[5], const std::string& delimiter = " ") const;
    63 
    64             Executor& setDescription(const std::string& description);
    65             const std::string& getDescription() const;
    66 
    67             Executor& setDescriptionParam(unsigned int param, const std::string& description);
    68             const std::string& getDescriptionParam(unsigned int param) const;
    69 
    70             Executor& setDescriptionReturnvalue(const std::string& description);
    71             const std::string& getDescriptionReturnvalue(int param) const;
    7263
    7364            inline Functor* getFunctor() const
     
    120111            MultiType defaultValue_[MAX_FUNCTOR_ARGUMENTS];
    121112            bool bAddedDefaultValue_[MAX_FUNCTOR_ARGUMENTS];
    122 
    123         private:
    124             LanguageEntryLabel description_;
    125             LanguageEntryLabel descriptionReturnvalue_;
    126             LanguageEntryLabel descriptionParam_[MAX_FUNCTOR_ARGUMENTS];
    127 
    128             bool bAddedDescription_;
    129             bool bAddedDescriptionReturnvalue_;
    130             bool bAddedDescriptionParam_[MAX_FUNCTOR_ARGUMENTS];
    131113    };
    132114
Note: See TracChangeset for help on using the changeset viewer.