Dripline-Cpp  v2.4.2
Dripline Implementation in C++
Classes | Namespaces | Macros | Functions
version_store.hh File Reference
#include "singleton.hh"
#include "dripline_api.hh"
#include "member_variables.hh"
#include "version_semantic.hh"
#include <map>
#include <memory>
Include dependency graph for version_store.hh:

Go to the source code of this file.

Classes

class  version_store
 Singleton class to store all version information relevant in any particular application context. More...
 
struct  version_store_adder< x_version >
 Version adder struct to enable adding version classes at static initialization. See ADD_VERSION. More...
 

Namespaces

 dripline
 

Macros

#define ADD_VERSION(version_name, version_type)   static ::dripline::version_store_adder< version_type > s_version_adder_##version_name( TOSTRING(version_name) );
 Macro for adding version classes at static initialization. More...
 

Functions

template<typename x_version >
std::shared_ptr< version_store_adder< x_version > > add_version (const std::string &a_name)
 
void add_version (const std::string &a_name, scarab::version_semantic_ptr_t a_version_ptr)
 

Macro Definition Documentation

◆ ADD_VERSION

#define ADD_VERSION (   version_name,
  version_type 
)    static ::dripline::version_store_adder< version_type > s_version_adder_##version_name( TOSTRING(version_name) );

Macro for adding version classes at static initialization.

Author
N.S. Oblath

Definition at line 110 of file version_store.hh.