YARP
Yet Another Robot Platform
IControlDebug.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_DEV_ICONTROLDEBUG_H
8 #define YARP_DEV_ICONTROLDEBUG_H
9 
10 #include <yarp/dev/api.h>
11 
12 namespace yarp {
13 namespace dev {
14 
21 {
22 public:
26  virtual ~IControlDebug() = default;
27 
28  /* Set the print function, pass here a pointer to your own function
29  * to print. This function should implement "printf" like parameters.
30  * @param a pointer to the print function
31  * @return I don't see good reasons why it should return false.
32  */
33  virtual bool setPrintFunction(int (*f)(const char* fmt, ...)) = 0;
34 
35  /* Read the content of the board internal memory, this is usually done
36  * at boot time, but can be forced by calling this method.
37  * @return true/false on success failure
38  */
39  virtual bool loadBootMemory() = 0;
40 
41  /* Save the current board configuration to the internal memory,
42  * this values are read at boot time or if loadBootMemory() is called.
43  * @return true/false on success/failure
44  */
45  virtual bool saveBootMemory() = 0;
46 };
47 
48 } // namespace dev
49 } // namespace yarp
50 
51 #endif // YARP_DEV_ICONTROLDEBUG_H
Interface for control devices, debug commands.
Definition: IControlDebug.h:21
virtual bool saveBootMemory()=0
virtual ~IControlDebug()=default
Destructor.
virtual bool setPrintFunction(int(*f)(const char *fmt,...))=0
virtual bool loadBootMemory()=0
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18