git-svn-id: svn://db.shs.com.ru/libs@98 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
55
cd_utils/cdutils_k.cpp
Normal file
55
cd_utils/cdutils_k.cpp
Normal file
@@ -0,0 +1,55 @@
|
||||
#include "cdutils_k.h"
|
||||
#include "cdutils_core.h"
|
||||
|
||||
using namespace CDUtils;
|
||||
|
||||
|
||||
KInterface::KInterface() {
|
||||
core = Core::instance();
|
||||
CONNECTU(core, K_Sended, this, sended);
|
||||
CONNECTU(core, K_Received, this, received);
|
||||
}
|
||||
|
||||
|
||||
bool KInterface::test(int v) {
|
||||
return core->k_.test(v);
|
||||
}
|
||||
|
||||
|
||||
KType & KInterface::operator [](int v) {
|
||||
return core->k_[v];
|
||||
}
|
||||
|
||||
|
||||
const KType KInterface::operator [](int v) const {
|
||||
return core->k_[v];
|
||||
}
|
||||
|
||||
|
||||
KSection & KInterface::section(int v) {
|
||||
return core->k_.section(v);
|
||||
}
|
||||
|
||||
|
||||
const KSection KInterface::section(int v) const {
|
||||
return core->k_.section(v);
|
||||
}
|
||||
|
||||
|
||||
void KInterface::send() {
|
||||
core->K_Send();
|
||||
}
|
||||
|
||||
void KInterface::request() {
|
||||
core->K_Request();
|
||||
}
|
||||
|
||||
|
||||
void KInterface::write(PIIODevice * d) {
|
||||
core->k_write(d);
|
||||
}
|
||||
|
||||
|
||||
void KInterface::read(PIIODevice * d) {
|
||||
core->k_read(d);
|
||||
}
|
||||
Reference in New Issue
Block a user