ʻOhana
Population structure, admixture history, and selection using learning methods.
Data Structures | Public Types | Static Public Member Functions
jade::basic_version< TChar > Class Template Reference

A template for a class that displays version and build information. More...

#include <jade.version.hpp>

+ Collaboration diagram for jade::basic_version< TChar >:

Public Types

typedef TChar char_type
 The character type. More...
 
typedef std::basic_ostream< char_typeostream_type
 The output stream type. More...
 

Static Public Member Functions

static void write (char_type const *const title, ostream_type &out)
 Writes the string displayed to the user. More...
 

Detailed Description

template<typename TChar>
class jade::basic_version< TChar >

A template for a class that displays version and build information.

Definition at line 18 of file jade.version.hpp.

Member Typedef Documentation

◆ char_type

template<typename TChar >
typedef TChar jade::basic_version< TChar >::char_type

The character type.

Definition at line 21 of file jade.version.hpp.

◆ ostream_type

template<typename TChar >
typedef std::basic_ostream<char_type> jade::basic_version< TChar >::ostream_type

The output stream type.

Definition at line 24 of file jade.version.hpp.

Member Function Documentation

◆ write()

template<typename TChar >
static void jade::basic_version< TChar >::write ( char_type const *const  title,
ostream_type out 
)
inlinestatic

Writes the string displayed to the user.

Parameters
titleThe program name.
outThe output stream.

Definition at line 29 of file jade.version.hpp.

32  {
33  static const values current { 0, 1, 7666, 41124, 2015, 2020 };
34 
35  out << "ohana/" << title << ' '
36  << current.major << '.'
37  << current.minor << '.'
38  << current.build << '.'
39  << current.revision << std::endl
40  << "Copyright (c) " << current.year_min << "-"
41  << current.year_max << " Jade Cheng" << std::endl
42  << "Jade Cheng <info@jade-cheng.com>" << std::endl;
43  }

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