Добавил:
korayakov
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабы / 2 / lab.01.by mice / fexchange / fx_iface
.cpp/*******************************************************************************
* file: fx_iface.h *
* version: 0.2.0 *
* author: d-evil [tmd] (mailto:d-evil.tmd@mail.ru) *
* description: not available *
* *
*******************************************************************************/
#include "fx_iface.h"
namespace fx_ns {
/*******************************************************************************
* definitions *
*******************************************************************************/
////////////////////////////////////////////////////////////////////////////////
// cfx_iface (public definitions)
int cfx_if::attach_core(cfx_core *const core) {
_set_core(core);
return OK_OK;
}
int cfx_if::detach_core() {
_set_core(NULL);
return OK_OK;
}
cfx_if::sfx_data cfx_if::cmd_to_core(const int cmd, const sfx_data ldata, const sfx_data rdata) {
if (NULL != _core)
return _core->execute_cmd(cmd, ldata, rdata);
else
return ERC_CORE_BADCMD;
}
} // end of namespace "fx_ns"
Соседние файлы в папке fexchange