Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7394 in orxonox.OLD for trunk/src/lib/shell/shell_command_class.h


Ignore:
Timestamp:
Apr 27, 2006, 1:33:23 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: list to vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command_class.h

    r7389 r7394  
    2424  public:
    2525    /** @returns the CommandClassList */
    26     static const std::list<ShellCommandClass*>* getCommandClassList() { return ShellCommandClass::commandClassList; };
     26    static const std::vector<ShellCommandClass*>& getCommandClassList() { return ShellCommandClass::commandClassList; };
    2727
    2828    static bool getCommandListOfClass(const std::string& className, std::list<std::string>& stringList);
     
    3838
    3939    static const ShellCommandClass* isRegistered(const std::string& className);
    40     static void initCommandClassList();
    4140
    4241    void registerCommand(ShellCommand* command);
     
    4746    long                                   classID;                   //!< The classID of this Class
    4847    std::vector<ShellCommand*>             commandList;               //!< A list of Commands from this Class
    49     static std::list<ShellCommandClass*>*  commandClassList;          //!< A list of Classes
     48
     49    static std::vector<ShellCommandClass*> commandClassList;          //!< A list of Classes
    5050  };
    5151
Note: See TracChangeset for help on using the changeset viewer.