forked from chrisoldwood/DDECmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FetchCmd.hpp
49 lines (37 loc) · 1.06 KB
/
FetchCmd.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
////////////////////////////////////////////////////////////////////////////////
//! \file FetchCmd.hpp
//! \brief The FetchCmd class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef APP_FETCHCMD_HPP
#define APP_FETCHCMD_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/ConsoleCmd.hpp>
#include <WCL/ConsoleApp.hpp>
////////////////////////////////////////////////////////////////////////////////
//! The DDE command used to fetch item values using and advise + request.
class FetchCmd : public WCL::ConsoleCmd
{
public:
//! Constructor.
FetchCmd(int argc, tchar* argv[], WCL::ConsoleApp& app);
//! Destructor.
virtual ~FetchCmd();
private:
//
// Members.
//
WCL::ConsoleApp& m_app; //!< The hosting application.
//
// Command methods.
//
//! Get the description of the command.
virtual const tchar* getDescription();
//! Get the expected command usage.
virtual const tchar* getUsage();
//! The implementation of the command.
virtual int doExecute(tostream& out, tostream& err);
};
#endif // APP_FETCHCMD_HPP