YARP
Yet Another Robot Platform
IControlDebug.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* Copyright (C) 2006-2010 RobotCub Consortium
4
* All rights reserved.
5
*
6
* This software may be modified and distributed under the terms of the
7
* BSD-3-Clause license. See the accompanying LICENSE file for details.
8
*/
9
10
#ifndef YARP_DEV_ICONTROLDEBUG_H
11
#define YARP_DEV_ICONTROLDEBUG_H
12
13
#include <
yarp/dev/api.h
>
14
15
namespace
yarp
{
16
namespace
dev {
17
23
class
YARP_dev_API
IControlDebug
24
{
25
public
:
29
virtual
~IControlDebug
() =
default
;
30
31
/* Set the print function, pass here a pointer to your own function
32
* to print. This function should implement "printf" like parameters.
33
* @param a pointer to the print function
34
* @return I don't see good reasons why it should return false.
35
*/
36
virtual
bool
setPrintFunction
(
int
(*f)(
const
char
* fmt, ...)) = 0;
37
38
/* Read the content of the board internal memory, this is usually done
39
* at boot time, but can be forced by calling this method.
40
* @return true/false on success failure
41
*/
42
virtual
bool
loadBootMemory
() = 0;
43
44
/* Save the current board configuration to the internal memory,
45
* this values are read at boot time or if loadBootMemory() is called.
46
* @return true/false on success/failure
47
*/
48
virtual
bool
saveBootMemory
() = 0;
49
};
50
51
}
// namespace dev
52
}
// namespace yarp
53
54
#endif // YARP_DEV_ICONTROLDEBUG_H
yarp::dev::IControlDebug::loadBootMemory
virtual bool loadBootMemory()=0
yarp::dev::IControlDebug
Interface for control devices, debug commands.
Definition:
IControlDebug.h:24
yarp::dev::IControlDebug::setPrintFunction
virtual bool setPrintFunction(int(*f)(const char *fmt,...))=0
yarp::dev::IControlDebug::~IControlDebug
virtual ~IControlDebug()=default
Destructor.
yarp::dev::IControlDebug::saveBootMemory
virtual bool saveBootMemory()=0
YARP_dev_API
#define YARP_dev_API
Definition:
api.h:19
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
api.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_dev
src
yarp
dev
IControlDebug.h
Generated on Sun Jan 3 2021 02:46:23 for YARP by
1.8.20