YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
RunCheckpoints.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_RUN_IMPL_RUNCHECKPOINTS_H
8
#define YARP_RUN_IMPL_RUNCHECKPOINTS_H
9
10
#include <string>
11
#include <list>
12
13
class
YarprunCheckpoints
// singleton
14
{
15
private
:
16
YarprunCheckpoints
();
17
18
public
:
19
~YarprunCheckpoints
();
20
21
static
YarprunCheckpoints
&
instance
();
22
23
void
checkpoint
(
const
char
* prefix,
const
char
* sFile,
const
char
* sFunction,
int
line);
24
25
private
:
26
FILE* mLogFile;
27
};
28
29
#ifdef YARPRUN_LOG
30
# define RUNLOG(msg) YarprunCheckpoints::instance().checkpoint(msg, __FILE__, __FUNCTION__, __LINE__);
31
#else
32
# define RUNLOG(msg)
33
#endif
34
35
#endif
// YARP_RUN_IMPL_RUNCHECKPOINTS_H
YarprunCheckpoints
Definition
RunCheckpoints.h:14
YarprunCheckpoints::~YarprunCheckpoints
~YarprunCheckpoints()
Definition
RunCheckpoints.cpp:47
YarprunCheckpoints::instance
static YarprunCheckpoints & instance()
Definition
RunCheckpoints.cpp:54
YarprunCheckpoints::checkpoint
void checkpoint(const char *prefix, const char *sFile, const char *sFunction, int line)
Definition
RunCheckpoints.cpp:61
YARP
3.11.2
src
libYARP_run
src
yarp
run
impl
RunCheckpoints.h
Generated on Sat Mar 1 2025 02:35:34 for YARP by
1.9.8