-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprovider.h
More file actions
32 lines (28 loc) · 796 Bytes
/
Copy pathprovider.h
File metadata and controls
32 lines (28 loc) · 796 Bytes
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
#ifndef _PROVIDER_H
#define _PROVIDER_H
#include <map>
#include <string>
#include "corbaComm.hh"
#include "corbaComm.h"
class ProviderImpl: public POA_CorbaCommModule::Provider
{
public:
ProviderImpl() { }
virtual ~ProviderImpl() { }
ProviderImpl(const ProviderImpl&) = delete;
ProviderImpl(ProviderImpl&&) = delete;
ProviderImpl& operator=(const ProviderImpl&) = delete;
ProviderImpl& operator=(ProviderImpl&&) = delete;
public:
// interface method(s)
//
char* execCmd(const char* cmd, const char* inData);
// class ProviderImpl's method(s)
//
void onCmd(const char* cmd,
cc::CommandCallback_t cmdCallback);
private:
typedef std::map<std::string, cc::CommandCallback_t> ProviderMap;
ProviderMap _providerMap;
};
#endif