Add Dirk Luetjen's ssphys libraries and command-line tool
[vss2svn.git] / ssphys / SSRep / Options.h
blob9e0f32819a1854c8978e51637dfcc85be477c743
1 // Options.h: interface for the COptions class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_OPTIONS_H__8B59AD68_C12F_44E7_9236_3C800593E961__INCLUDED_)
6 #define AFX_OPTIONS_H__8B59AD68_C12F_44E7_9236_3C800593E961__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 #include "VersionFilter.h"
14 class COptions
16 public:
17 COptions ();
18 virtual ~COptions ();
20 void PrintUsage ();
21 void ParseCommandLine (int argc, char* argv[]);
23 StringVector GetItems () const { return m_Items; }
24 std::string GetCommand () const { return m_Command; }
25 bool GetIntegrityCheck () const { return m_bIntegrityCheck; }
26 bool GetIncludeLabels () const { return m_bIncludeLabels; }
27 bool GetOnlyLabels () const { return m_bOnlyLabels; }
28 bool GetDeleted () const { return m_bIncludeDeleted; }
29 bool GetOnlyDeleted () const { return m_bOnlyDeleted; }
30 bool GetFiles () const { return m_bIncludeFiles; }
31 bool GetOnlyFiles () const { return m_bOnlyFiles; }
32 bool GetHelp () const { return m_bHelp; }
33 bool GetRecursive () const { return m_bRecursive; }
34 std::string GetSrcSafeIniPath () const{ return m_SrcSafeIniPath; }
35 std::string GetNamesCache () const { return m_NamesDat; }
36 bool GetAllRecords () const { return m_bAllRecords; }
37 CVersionFilter* GetVersionFilter () const { return m_pVersionFilter; }
38 int GetVersion () const { return m_Version; }
39 std::string GetVersionDate () const { return m_VersionDate; }
40 std::string GetDestination () const { return m_Dest; }
41 bool GetForceOverwrite () const { return m_bForceOverwrite; }
42 bool GetExtendedOutput () const { return m_bExtended; }
43 bool GetPhysOutput () const { return m_bPhys; }
45 std::string GetUser () const { return m_User; }
46 std::string GetPassword () const { return m_Password; }
48 std::string GetLogFile () const { return m_LogFile; }
49 protected:
50 bool IsLongArgument (const char* ch, const char* arg);
51 bool IsArgChar (const char ch, const char arg);
52 bool ToBool (const char ch, bool& val);
54 StringVector m_Items;
55 std::string m_Command;
56 bool m_bIntegrityCheck;
57 bool m_bIncludeLabels;
58 bool m_bOnlyLabels;
59 bool m_bIncludeDeleted;
60 bool m_bOnlyDeleted;
61 bool m_bIncludeFiles;
62 bool m_bOnlyFiles;
63 bool m_bHelp;
64 bool m_bRecursive;
65 bool m_bAllRecords;
66 std::string m_NamesDat;
67 std::string m_SrcSafeIniPath;
68 CVersionFilter* m_pVersionFilter;
69 int m_Version;
70 std::string m_VersionDate;
71 std::string m_Dest;
72 bool m_bForceOverwrite;
73 std::string m_User;
74 std::string m_Password;
75 std::string m_LogFile;
76 bool m_bExtended;
77 bool m_bPhys;
80 #endif // !defined(AFX_OPTIONS_H__8B59AD68_C12F_44E7_9236_3C800593E961__INCLUDED_)