git-svn-id: svn://db.shs.com.ru/libs@98 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2016-07-13 13:40:33 +00:00
parent f14a58cf19
commit f30c749428
10 changed files with 346 additions and 36 deletions

41
cd_utils/cdutils_k.h Normal file
View File

@@ -0,0 +1,41 @@
#ifndef CDUTILS_K_H
#define CDUTILS_K_H
#include "cdutils_k_types.h"
#include "piobject.h"
namespace CDUtils {
class Core;
class KInterface: public PIObject
{
PIOBJECT(CDUtils::KInterface)
public:
KInterface();
bool test(int v);
KType & operator [](int v);
const KType operator [](int v) const;
KSection & section(int v);
const KSection section(int v) const;
EVENT(sended)
EVENT(received)
EVENT_HANDLER(void, send);
EVENT_HANDLER(void, request);
void write(PIIODevice * d);
void read(PIIODevice * d);
private:
Core * core;
};
static KInterface K;
}
#endif // CDUTILS_K_H