forked from chrisoldwood/DDECmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DDECmd.hpp
57 lines (43 loc) · 1.14 KB
/
DDECmd.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
////////////////////////////////////////////////////////////////////////////////
//! \file DDECmd.hpp
//! \brief The DDECmd class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef DDECMD_HPP
#define DDECMD_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/ConsoleApp.hpp>
#include <WCL/ConsoleCmd.hpp>
////////////////////////////////////////////////////////////////////////////////
//! The application.
class DDECmd : public WCL::ConsoleApp
{
public:
//! Default constructor.
DDECmd();
//! Destructor.
virtual ~DDECmd();
protected:
//
// ConsoleApp methods.
//
//! Run the application.
virtual int run(int argc, tchar* argv[], tistream& in, tostream& out, tostream& err);
//! Get the name of the application.
virtual tstring applicationName() const;
//! Display the program options syntax.
virtual void showUsage(tostream& out) const;
private:
//
// Members.
//
Core::CmdLineParser m_parser; //!< The command line parser.
//
// Internal methods.
//
//! Create the Comand object.
WCL::ConsoleCmdPtr createCommand(int argc, tchar* argv[]); // throw(CmdLineException)
};
#endif // DDECMD_HPP