1 // Options.h: interface for the COptions class.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_OPTIONS_H__8B59AD68_C12F_44E7_9236_3C800593E961__INCLUDED_)
6 #define AFX_OPTIONS_H__8B59AD68_C12F_44E7_9236_3C800593E961__INCLUDED_
10 #endif // _MSC_VER > 1000
12 #include "VersionFilter.h"
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
; }
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
);
55 std::string m_Command
;
56 bool m_bIntegrityCheck
;
57 bool m_bIncludeLabels
;
59 bool m_bIncludeDeleted
;
66 std::string m_NamesDat
;
67 std::string m_SrcSafeIniPath
;
68 CVersionFilter
* m_pVersionFilter
;
70 std::string m_VersionDate
;
72 bool m_bForceOverwrite
;
74 std::string m_Password
;
75 std::string m_LogFile
;
80 #endif // !defined(AFX_OPTIONS_H__8B59AD68_C12F_44E7_9236_3C800593E961__INCLUDED_)