icedb  version 0.5.1
Snow particle scattering database API
Macros | Typedefs | Enumerations | Functions
versioningForwards.h File Reference
#include "../defs.h"
Include dependency graph for versioningForwards.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ICEDB_H_VERSIONING_FORWARDS
 

Typedefs

typedef ICEDB_VersionInfoICEDB_VersionInfo_p
 

Enumerations

enum  ICEDB_ver_match {
  ICEDB_VER_INCOMPATIBLE, ICEDB_VER_COMPATIBLE_1, ICEDB_VER_COMPATIBLE_2, ICEDB_VER_COMPATIBLE_3,
  ICEDB_VER_EXACT_MATCH
}
 

Functions

DL_ICEDB void ICEDB_VersionInfo_Free (ICEDB_VersionInfo_p)
 
DL_ICEDB ICEDB_VersionInfo_p ICEDB_getLibVersionInfo ()
 
DL_ICEDB char * ICEDB_WriteLibVersionInfoC (ICEDB_VersionInfo_p, char *, size_t sz)
 
DL_ICEDB const char * ICEDB_WriteLibVersionInfoCC (ICEDB_VersionInfo_p)
 
DL_ICEDB ICEDB_ver_match ICEDB_CompareVersions (const ICEDB_VersionInfo_p a, const ICEDB_VersionInfo_p b)
 

Macro Definition Documentation

◆ ICEDB_H_VERSIONING_FORWARDS

#define ICEDB_H_VERSIONING_FORWARDS

Definition at line 3 of file versioningForwards.h.

Typedef Documentation

◆ ICEDB_VersionInfo_p

Definition at line 13 of file versioningForwards.h.

Enumeration Type Documentation

◆ ICEDB_ver_match

Enumerator
ICEDB_VER_INCOMPATIBLE 
ICEDB_VER_COMPATIBLE_1 
ICEDB_VER_COMPATIBLE_2 
ICEDB_VER_COMPATIBLE_3 
ICEDB_VER_EXACT_MATCH 

Definition at line 7 of file versioningForwards.h.

Function Documentation

◆ ICEDB_CompareVersions()

DL_ICEDB ICEDB_ver_match ICEDB_CompareVersions ( const ICEDB_VersionInfo_p  a,
const ICEDB_VersionInfo_p  b 
)

Definition at line 98 of file versioning.cpp.

References icedb::versioning::compareVersions(), ICEDB_END_DECL_C, and ICEDB_VersionInfo::p.

98  {
99  return icedb::versioning::compareVersions(a->p, b->p);
100 }
icedb::versioning::versionInfo_p p
Definition: versioning.hpp:20
ICEDB_ver_match compareVersions(const versionInfo_p a, const versionInfo_p b)
Definition: versioning.cpp:9
Here is the call graph for this function:

◆ ICEDB_getLibVersionInfo()

DL_ICEDB ICEDB_VersionInfo_p ICEDB_getLibVersionInfo ( )

Definition at line 80 of file versioning.cpp.

References icedb::versioning::getLibVersionInfo(), and ICEDB_VersionInfo::p.

80  {
83  return res;
84 }
void getLibVersionInfo(versionInfo &out)
Definition: versioning.cpp:59
Here is the call graph for this function:

◆ ICEDB_VersionInfo_Free()

DL_ICEDB void ICEDB_VersionInfo_Free ( ICEDB_VersionInfo_p  )

Definition at line 78 of file versioning.cpp.

78 { if (p) delete p; }

◆ ICEDB_WriteLibVersionInfoC()

DL_ICEDB char* ICEDB_WriteLibVersionInfoC ( ICEDB_VersionInfo_p  ,
char *  ,
size_t  sz 
)

Definition at line 93 of file versioning.cpp.

References ICEDB_COMPAT_strncpy_s(), ICEDB_WriteLibVersionInfoCC(), and ICEDB_VersionInfo::vstr.

93  {
95  ICEDB_COMPAT_strncpy_s(buf, sz, p->vstr.c_str(), p->vstr.size());
96  return buf;
97 }
ICEDB_BEGIN_DECL_C ICEDB_SYMBOL_SHARED size_t ICEDB_COMPAT_strncpy_s(char *dest, size_t destSz, const char *src, size_t srcSz)
Definition: util.cpp:14
const char * ICEDB_WriteLibVersionInfoCC(ICEDB_VersionInfo_p p)
Definition: versioning.cpp:86
Here is the call graph for this function:

◆ ICEDB_WriteLibVersionInfoCC()

DL_ICEDB const char* ICEDB_WriteLibVersionInfoCC ( ICEDB_VersionInfo_p  )

Definition at line 86 of file versioning.cpp.

References icedb::versioning::debug_preamble(), ICEDB_VersionInfo::p, and ICEDB_VersionInfo::vstr.

Referenced by ICEDB_WriteLibVersionInfoC().

86  {
87  if (p->vstr.size()) return p->vstr.c_str();
88  std::ostringstream out;
89  icedb::versioning::debug_preamble(*(p->p.get()), out);
90  p->vstr = out.str();
91  return p->vstr.c_str();
92 }
void debug_preamble(const versionInfo &v, std::ostream &out=std::cerr)
Provides information about the build environment during compilation.
Definition: versioning.hpp:116
Here is the call graph for this function:
Here is the caller graph for this function: