35 lines
629 B
C++
35 lines
629 B
C++
#ifndef CDUTILS_C_H
|
|
#define CDUTILS_C_H
|
|
|
|
#include "cdutils_interface.h"
|
|
|
|
|
|
namespace CDUtils {
|
|
|
|
|
|
class CInterface: public Interface
|
|
{
|
|
PIOBJECT(CDUtils::CInterface)
|
|
public:
|
|
CInterface();
|
|
|
|
EVENT(sended)
|
|
EVENT(sendFailed)
|
|
EVENT(received)
|
|
EVENT(receiveFailed)
|
|
EVENT1(keepNamesRequest, bool*, cn)
|
|
EVENT_HANDLER(void, send);
|
|
EVENT_HANDLER(void, request);
|
|
|
|
void sendCommand(const CDType & c);
|
|
void connect(const CDType & c, PIObject * o, Handler eh);
|
|
void autoConnect(PIObject * o, const PIString & prefix = PIStringAscii("c_"));
|
|
|
|
};
|
|
|
|
}
|
|
|
|
extern CDUtils::CInterface C;
|
|
|
|
#endif // CDUTILS_C_H
|