libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::info::revision Class Reference

Attempt to include revision information for the file from which the exception was constructed. More...

#include <info.hpp>

Public Member Functions

constexpr __stdcall revision (const tchar *r=_T(LIBJMMCG_VERSION_NUMBER), const char *f=__FILE__) noexcept(true)
 
__stdcall revision (const revision &r) noexcept(true)
 

Static Public Member Functions

static constexpr std::size_t max_size () noexcept(true)
 

Friends

tostream &__fastcall operator<< (tostream &o, const revision &ri) noexcept(false)
 

Detailed Description

Attempt to include revision information for the file from which the exception was constructed.

This should be added at source-file scope, although it does support header-file usage too. At source file-scope the macro JMMCG_REVISION_CONSTANT is provided to allow trivial use. In a header file the macro JMMCG_REVISION_HDR is provided to ease use.

See also
JMMCG_REVISION_CONSTANT
JMMCG_REVISION_HDR

Definition at line 54 of file info.hpp.

Constructor & Destructor Documentation

◆ revision() [1/2]

constexpr __stdcall jmmcg::LIBJMMCG_VER_NAMESPACE::info::revision::revision ( const tchar r = _T(LIBJMMCG_VERSION_NUMBER),
const char *  f = __FILE__ 
)
inlineconstexprnoexcept

◆ revision() [2/2]

__stdcall jmmcg::LIBJMMCG_VER_NAMESPACE::info::revision::revision ( const revision r)
inlinenoexcept

Definition at line 59 of file info.hpp.

Member Function Documentation

◆ max_size()

static constexpr std::size_t jmmcg::LIBJMMCG_VER_NAMESPACE::info::revision::max_size ( )
inlinestaticconstexprnoexcept

Friends And Related Function Documentation

◆ operator<<

tostream& __fastcall operator<< ( tostream o,
const revision ri 
)
friend
Todo:
Implement using the advice given in "Standard C++ IOStreams and Locales" by A.Langer & K.Kreft, page 170.

Definition at line 70 of file info.hpp.


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