1 #pragma once 2 class CCommandInfo 3 { 4 public: 5 CCommandInfo(void); 6 ~CCommandInfo(void); 7 8 public: IsNoGui()9 BOOL IsNoGui(){ return nogui; }; IsBinaryMode()10 BOOL IsBinaryMode(){ return binary; }; IsXmlMode()11 BOOL IsXmlMode(){ return xml; }; IsBigEndian()12 BOOL IsBigEndian(){ return big_endian; }; GenResource()13 BOOL GenResource(){ return gen_resource; }; GenResHeader()14 BOOL GenResHeader(){ return gen_res_header; }; GenSpecification()15 BOOL GenSpecification() { return gen_specification; }; GetLanguageCount()16 int GetLanguageCount(){ return num_of_language; }; GetThemCount()17 int GetThemCount(){ return num_of_theme; }; GetDisplayCount()18 int GetDisplayCount(){ return num_of_display; }; GetProjectPath()19 CString GetProjectPath(){ return project_path; }; GetProjectName()20 CString GetProjectName(){ return project_name; }; GetResourceFileName()21 CString GetResourceFileName(){ return resource_filename; }; GetSpecificationFileName()22 CString GetSpecificationFileName(){ return specification_filename; }; GetStringImportFileName()23 CString GetStringImportFileName(){ return string_import_filename; }; GetOutputPath()24 CString GetOutputPath() { return output_path; }; GetGuixRepoLocalPath()25 CString GetGuixRepoLocalPath() { return guix_repo_local_path; } GetGuixCloneWritePipeHandle()26 HANDLE GetGuixCloneWritePipeHandle() { return guix_clone_write_pipe_handle; } GetLogFile()27 FILE *GetLogFile(){ return log_file; }; 28 29 private: 30 BOOL nogui; 31 BOOL binary; 32 BOOL xml; 33 BOOL big_endian; 34 BOOL gen_resource; 35 BOOL gen_res_header; 36 BOOL gen_specification; 37 BOOL playback_macro; 38 int num_of_language; 39 int num_of_theme; 40 int num_of_display; 41 CString log_pathname; 42 CString project_path; 43 CString project_name; 44 CString resource_filename; 45 CString specification_filename; 46 CString string_import_filename; 47 CString output_path; 48 CString guix_repo_local_path; 49 HANDLE guix_clone_write_pipe_handle; 50 CString language[MAX_LANGUAGES]; 51 CString theme[MAX_THEMES]; 52 CString display[MAX_DISPLAYS]; 53 FILE *log_file; 54 55 public: 56 void ReadCommandLineInfo(LPTSTR m_lpCmdLine); 57 void ReadMultiParameter(CString cmd, CString parameter[], int &num); 58 void ReadPathName(CString cmd, CString &path, CString &name); 59 void ReadPathName(CString cmd, CString &pathname); 60 BOOL IsThemeEnabled(CString name); 61 BOOL IsLanguageEnabled(CString name); 62 BOOL IsDisplayEnabled(CString name); 63 BOOL ReadArgument(CString &cmd, CString option, CString &argument); 64 65 private: 66 BOOL FindString(CString str_table[], int table_size, CString find_str); 67 }; 68 69