YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
12namespace yarp::dev {
13
20{
21public:
25 virtual ~IControlDebug() = default;
26
27 /* Set the print function, pass here a pointer to your own function
28 * to print. This function should implement "printf" like parameters.
29 * @param a pointer to the print function
30 * @return I don't see good reasons why it should return false.
31 */
32 virtual bool setPrintFunction(int (*f)(const char* fmt, ...)) = 0;
33
34 /* Read the content of the board internal memory, this is usually done
35 * at boot time, but can be forced by calling this method.
36 * @return true/false on success failure
37 */
38 virtual bool loadBootMemory() = 0;
39
40 /* Save the current board configuration to the internal memory,
41 * this values are read at boot time or if loadBootMemory() is called.
42 * @return true/false on success/failure
43 */
44 virtual bool saveBootMemory() = 0;
45};
46
47} // namespace yarp::dev
48
49#endif // YARP_DEV_ICONTROLDEBUG_H
Interface for control devices, debug commands.
virtual bool saveBootMemory()=0
virtual ~IControlDebug()=default
Destructor.
virtual bool setPrintFunction(int(*f)(const char *fmt,...))=0
virtual bool loadBootMemory()=0
For streams capable of holding different kinds of content, check what they actually have.
#define YARP_dev_API
Definition api.h:18