CommandLine.h
Go to the documentation of this file.00001 00010 #ifndef __CommandLine_H__ 00011 #define __CommandLine_H__ 00012 00013 // Includes 00014 #include "StringId.h" 00015 #include "Array.h" 00016 00017 // Forward declares 00018 00019 // CommandLine 00020 class CommandLine 00021 { 00022 public: 00023 CommandLine(); 00024 00025 CommandLine(const char* commandLineString); 00026 00030 bool IsCommandLineFlagSet( 00031 StringId flag 00032 ); 00033 00037 int GetCommandLineFlagCount(); 00038 00042 StringId GetCommandLineFlag( 00043 int index 00044 ); 00045 00049 int GetCommandLineStringCount(); 00050 00054 StringId GetCommandLineString( 00055 int index 00056 ); 00057 00058 private: 00059 void ParseCommandLine(const char* commandLine); 00060 00061 00062 private: 00063 Array<StringId> commandLineFlags_; 00064 Array<StringId> commandLineStrings_; 00065 00066 }; 00067 00068 #endif /* __CommandLine_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
