OpenDaVINCI  4.16.0
opendavinci.h File Reference
#include "platform/PortableEndian.h"
#include <arpa/inet.h>
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>

Go to the source code of this file.

Namespaces

 odcore
 

Macros

#define OPENDAVINCI_API
 
#define UNLINK   unlink
 
#define OPENDAVINCI_CORE_DECLARE_EXCEPTION(ExceptionName)   class OPENDAVINCI_API ExceptionName : public Exceptions { public: ExceptionName(const string &exceptionMessage, const string &fileName, const uint32_t &lineNumber) : Exceptions(exceptionMessage, fileName, lineNumber) {}; const string getExceptionName() const { return "" #ExceptionName ""; } };
 
#define OPENDAVINCI_CORE_THROW_EXCEPTION(ExceptionClass, ExceptionMessage)   do { throw odcore::exceptions::ExceptionClass(ExceptionMessage, "", 0); } while (false)
 
#define OPENDAVINCI_CORE_FREE_POINTER(ptr)   do { if (ptr != NULL) { free(ptr); }; ptr = NULL; } while (false)
 
#define OPENDAVINCI_CORE_DELETE_POINTER(ptr)   do { if (ptr != NULL) { delete(ptr); }; ptr = NULL; } while (false)
 
#define OPENDAVINCI_CORE_DELETE_ARRAY(ptr)   do { if (ptr != NULL) { delete [] (ptr); }; ptr = NULL; } while (false)
 
#define CLOG   if (odcore::base::module::AbstractCIDModule::isVerbose()) std::clog
 
#define CLOG1   if (odcore::base::module::AbstractCIDModule::getVerbosity() == 1) std::clog
 
#define CLOG2   if ((odcore::base::module::AbstractCIDModule::getVerbosity() <= 2) && (odcore::base::module::AbstractCIDModule::getVerbosity() >= 1)) std::clog
 
#define CLOG3   if ((odcore::base::module::AbstractCIDModule::getVerbosity() <= 3) && (odcore::base::module::AbstractCIDModule::getVerbosity() >= 1)) std::clog
 

Enumerations

enum  odcore::TYPE_ {
  odcore::BOOL_T = 0, odcore::INTEGERS_START = 1, odcore::UINT8_T = 2, odcore::INT8_T = 3,
  odcore::UINT16_T = 4, odcore::INT16_T = 5, odcore::UINT32_T = 6, odcore::INT32_T = 7,
  odcore::UINT64_T = 8, odcore::INT64_T = 9, odcore::INTEGERS_END = 10, odcore::CHAR_T = 11,
  odcore::UCHAR_T = 12, odcore::FLOAT_T = 13, odcore::DOUBLE_T = 14, odcore::NON_PRIMITIVE_START = 50,
  odcore::STRING_T = 51, odcore::DATA_T = 52, odcore::SERIALIZABLE_T = 53, odcore::NON_PRIMITIVE_END = 54,
  odcore::RESERVED_ = 127, odcore::UINT8_T_R, odcore::INT8_T_R, odcore::UINT16_T_R,
  odcore::INT16_T_R, odcore::UINT32_T_R, odcore::INT32_T_R, odcore::UINT64_T_R,
  odcore::INT64_T_R, odcore::UINT8_UINT16 =150, odcore::UINT8_UINT16_R, odcore::UINT8_INT16,
  odcore::UINT8_INT16_R, odcore::UINT8_UINT32, odcore::UINT8_UINT32_R, odcore::UINT8_INT32,
  odcore::UINT8_INT32_R, odcore::UINT8_UINT64, odcore::UINT8_UINT64_R, odcore::UINT8_INT64,
  odcore::UINT8_INT64_R, odcore::UINT8_FLOAT, odcore::UINT8_FLOAT_R, odcore::UINT8_DOUBLE,
  odcore::UINT8_DOUBLE_R, odcore::INT8_INT16, odcore::INT8_INT16_R, odcore::INT8_INT32,
  odcore::INT8_INT32_R, odcore::INT8_INT64, odcore::INT8_INT64_R, odcore::INT8_FLOAT,
  odcore::INT8_FLOAT_R, odcore::INT8_DOUBLE, odcore::INT8_DOUBLE_R, odcore::UINT16_UINT32,
  odcore::UINT16_UINT32_R, odcore::UINT16_INT32, odcore::UINT16_INT32_R, odcore::UINT16_UINT64,
  odcore::UINT16_UINT64_R, odcore::UINT16_INT64, odcore::UINT16_INT64_R, odcore::UINT16_FLOAT,
  odcore::UINT16_FLOAT_R, odcore::UINT16_DOUBLE, odcore::UINT16_DOUBLE_R, odcore::INT16_INT32,
  odcore::INT16_INT32_R, odcore::INT16_INT64, odcore::INT16_INT64_R, odcore::INT16_FLOAT,
  odcore::INT16_FLOAT_R, odcore::INT16_DOUBLE, odcore::INT16_DOUBLE_R, odcore::UINT32_UINT64,
  odcore::UINT32_UINT64_R, odcore::UINT32_INT64, odcore::UINT32_INT64_R, odcore::UINT32_DOUBLE,
  odcore::UINT32_DOUBLE_R, odcore::INT32_INT64, odcore::INT32_INT64_R, odcore::INT32_DOUBLE,
  odcore::INT32_DOUBLE_R, odcore::FLOAT_DOUBLE, odcore::FLOAT_DOUBLE_R, odcore::BOOL_FALSE,
  odcore::BOOL_TRUE, odcore::NO_OP =255
}
 

Macro Definition Documentation

#define CLOG   if (odcore::base::module::AbstractCIDModule::isVerbose()) std::clog
#define OPENDAVINCI_API

OpenDaVINCI - Portable middleware for distributed components. Copyright (C) 2008 - 2015 Christian Berger, Bernhard Rumpe

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA The following defines are needed for building a dynamic library using the Microsoft C++ compiler or the GNU compiler collection.

#define OPENDAVINCI_CORE_DECLARE_EXCEPTION (   ExceptionName)    class OPENDAVINCI_API ExceptionName : public Exceptions { public: ExceptionName(const string &exceptionMessage, const string &fileName, const uint32_t &lineNumber) : Exceptions(exceptionMessage, fileName, lineNumber) {}; const string getExceptionName() const { return "" #ExceptionName ""; } };
#define OPENDAVINCI_CORE_FREE_POINTER (   ptr)    do { if (ptr != NULL) { free(ptr); }; ptr = NULL; } while (false)
#define UNLINK   unlink