OpenLexocad  27.1
Core::Version Class Reference

A proxy class to conveniently get the automatically generated version of lexocad. More...

#include <Version.h>

Public Types

using PFN_LexocadVersion = void(*)(int *, int *, int *, int *)
 
using PFN_LexocadVersionPart = int(*)()
 
using PFN_LexocadVersionString = const char *(*)()
 

Public Member Functions

 Version (const Version &other)=delete
 
Versionoperator= (const Version &other)=delete
 

Static Public Member Functions

static Versioninstance ()
 

Public Attributes

const unsigned major
 
const unsigned minor
 
const unsigned patch
 
const unsigned revision
 
const char * buildDateTime
 
const char * document
 
const char * product
 

Detailed Description

A proxy class to conveniently get the automatically generated version of lexocad.

This class serves for decoupling the generation of the version data by cmake by every configure and compilation of Core. If you include the generated header file directly it will force the Core to be recompiled every time the header is generated (e.g. when the svn revision number changes = every time). And thus to possibly recompile everything that depends on the Core ( = almost everything).

Member Typedef Documentation

◆ PFN_LexocadVersion

using Core::Version::PFN_LexocadVersion = void (*)(int*, int*, int*, int*)

◆ PFN_LexocadVersionPart

◆ PFN_LexocadVersionString

using Core::Version::PFN_LexocadVersionString = const char* (*)()

Constructor & Destructor Documentation

◆ Version()

Core::Version::Version ( const Version other)
delete

Member Function Documentation

◆ instance()

static Version& Core::Version::instance ( )
static

◆ operator=()

Version& Core::Version::operator= ( const Version other)
delete

Member Data Documentation

◆ buildDateTime

const char* Core::Version::buildDateTime

◆ document

const char* Core::Version::document

◆ major

const unsigned Core::Version::major

◆ minor

const unsigned Core::Version::minor

◆ patch

const unsigned Core::Version::patch

◆ product

const char* Core::Version::product

◆ revision

const unsigned Core::Version::revision

The documentation for this class was generated from the following file: