Classes | Defines | Variables
log.h File Reference
#include <string.h>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CLog

Defines

#define LOG(format,...)   { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); }
#define LOG_ERROR(format,...)   { if (LOG_MSG_ERROR_VERBOSE <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }
#define LOG_ERROR_SEVERE(format,...)   { if (LOG_MSG_ERROR_SEVERE <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }
#define LOG_INPUT_LEVEL(index)   (index <= globalLog.inputLevel)
#define LOG_MSG(index, format,...)   { if (index <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }
#define LOG_MSG_ERROR_SEVERE   0
#define LOG_MSG_ERROR_VERBOSE   1
#define LOG_MSG_LEVEL(index)   (index <= globalLog.debugLevel)
#define LOG_MSG_NO_ERROR_VERBOSE   5
#define LOG_VERBOSE(format,...)   { if (LOG_MSG_NO_ERROR_VERBOSE <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }

Variables

CLog globalLog

Define Documentation

#define LOG (   format,
  ... 
)    { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); }

Definition at line 30 of file log.h.

#define LOG_ERROR (   format,
  ... 
)    { if (LOG_MSG_ERROR_VERBOSE <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }

Definition at line 36 of file log.h.

#define LOG_ERROR_SEVERE (   format,
  ... 
)    { if (LOG_MSG_ERROR_SEVERE <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }

Definition at line 38 of file log.h.

#define LOG_INPUT_LEVEL (   index)    (index <= globalLog.inputLevel)

Definition at line 42 of file log.h.

#define LOG_MSG (   index,
  format,
  ... 
)    { if (index <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }

Definition at line 32 of file log.h.

#define LOG_MSG_ERROR_SEVERE   0

Definition at line 27 of file log.h.

#define LOG_MSG_ERROR_VERBOSE   1

Definition at line 26 of file log.h.

#define LOG_MSG_LEVEL (   index)    (index <= globalLog.debugLevel)

Definition at line 41 of file log.h.

#define LOG_MSG_NO_ERROR_VERBOSE   5

Copyright (c) 2016, Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 25 of file log.h.

#define LOG_VERBOSE (   format,
  ... 
)    { if (LOG_MSG_NO_ERROR_VERBOSE <= globalLog.debugLevel) { char buffer[1024]; snprintf(buffer, 1024, format, ## __VA_ARGS__); std::string str = buffer; globalLog.writeLine(str); printf(format, ## __VA_ARGS__); } }

Definition at line 34 of file log.h.


Variable Documentation

Copyright (c) 2016, Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 28 of file log.cpp.



asr_kinematic_chain_optimizer
Author(s): Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij
autogenerated on Sat Jun 8 2019 19:42:49