propertydemarshaller.cpp
来自「机器人开源项目orocos的源代码」· C++ 代码 · 共 45 行
CPP
45 行
#include "PropertyDemarshaller.hpp"#include "rtt-config.h"#ifdef ORODAT_CORELIB_PROPERTIES_DEMARSHALLING_INCLUDE#include ORODAT_CORELIB_PROPERTIES_DEMARSHALLING_INCLUDE#endif#include <Property.hpp>#include <Logger.hpp>namespace RTT{ using namespace detail; PropertyDemarshaller::PropertyDemarshaller( const std::string& filename ) : d( 0 ) { Logger::In in("PropertyDemarshaller");#ifdef ORODAT_CORELIB_PROPERTIES_DEMARSHALLING_INCLUDE try { d = new OROCLS_CORELIB_PROPERTIES_DEMARSHALLING_DRIVER(filename); } catch(...) { log(Error) << "Could not open file: " << filename << endlog(); }#else log(Error) << "Orocos RTT was configured without Property Marshalling support !"<<endlog();#endif } PropertyDemarshaller::~PropertyDemarshaller() { delete d; } bool PropertyDemarshaller::deserialize( PropertyBag &v ) { Logger::In in("PropertyDemarshaller"); if (d) return d->deserialize(v); return false; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?