📄 propertydemarshaller.cpp
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -