25 #ifndef __LOGGERINTERFACES__
26 #define __LOGGERINTERFACES__
29 #include <yarp/os/Value.h>
30 #include <yarp/dev/DeviceDriver.h>
49 class yarp::dev::LoggerDataRef
58 LoggerDataRef(yarp::os::Value*
data,
bool *flag)
59 : pData(
data),pFlag(flag),pMutex(NULL)
66 virtual ~LoggerDataRef(){}
72 void setMutex(std::mutex* pMtx)
86 if (pMutex) pMutex->lock();
89 *pData=yarp::os::Value(
data);
92 if (pMutex) pMutex->unlock();
97 yarp::os::Value* pData;
124 virtual bool log(
const std::string &key,
const yarp::os::Value &
data)=0;
132 virtual bool log(
const yarp::os::Bottle &
data)=0;
Interface for a client that logs status messages to a server.
virtual void setServerLogger(const IServerLogger *server)=0
Interface for a server that logs status messages.
virtual bool log(const std::string &key, const yarp::os::Value &data)=0
Get a reference to log server data.
virtual bool log(const yarp::os::Bottle &data)=0
Log data to server.
bool write(const std::string filename, const FullRegulation ®)
Copyright (C) 2008 RobotCub Consortium.