Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chainbase::environment Struct Reference

#include <environment.hpp>

Public Types

enum  os_t : unsigned char { OS_LINUX , OS_MACOS , OS_WINDOWS , OS_OTHER }
 
enum  arch_t : unsigned char { ARCH_X86_64 , ARCH_ARM , ARCH_RISCV , ARCH_OTHER }
 

Public Member Functions

 environment ()
 
bool operator== (const environment &other)
 
bool operator!= (const environment &other)
 

Public Attributes

enum chainbase::environment::os_t __attribute__
 
bool debug
 
os_t os
 
arch_t arch
 
unsigned boost_version = BOOST_VERSION
 
uint8_t reserved [512] = {}
 
char compiler [256] = {}
 

Detailed Description

Definition at line 10 of file environment.hpp.

Member Enumeration Documentation

◆ arch_t

enum chainbase::environment::arch_t : unsigned char
Enumerator
ARCH_X86_64 
ARCH_ARM 
ARCH_RISCV 
ARCH_OTHER 

Definition at line 21 of file environment.hpp.

◆ os_t

enum chainbase::environment::os_t : unsigned char
Enumerator
OS_LINUX 
OS_MACOS 
OS_WINDOWS 
OS_OTHER 

Definition at line 15 of file environment.hpp.

Constructor & Destructor Documentation

◆ environment()

chainbase::environment::environment ( )
inline

Definition at line 11 of file environment.hpp.

11 {
12 strncpy(compiler, __VERSION__, sizeof(compiler)-1);
13 }

Member Function Documentation

◆ operator!=()

bool chainbase::environment::operator!= ( const environment & other)
inline

Definition at line 62 of file environment.hpp.

62 {
63 return !(*this == other);
64 }

◆ operator==()

bool chainbase::environment::operator== ( const environment & other)
inline

Definition at line 59 of file environment.hpp.

59 {
60 return !memcmp(this, &other, sizeof(environment));
61 }

Member Data Documentation

◆ __attribute__

enum chainbase::environment::os_t chainbase::environment::__attribute__

◆ arch

arch_t chainbase::environment::arch
Initial value:

Definition at line 44 of file environment.hpp.

◆ boost_version

unsigned chainbase::environment::boost_version = BOOST_VERSION

Definition at line 55 of file environment.hpp.

◆ compiler

char chainbase::environment::compiler[256] = {}

Definition at line 57 of file environment.hpp.

57{};

◆ debug

bool chainbase::environment::debug
Initial value:
=
true

Definition at line 28 of file environment.hpp.

◆ os

os_t chainbase::environment::os
Initial value:

Definition at line 34 of file environment.hpp.

◆ reserved

uint8_t chainbase::environment::reserved[512] = {}

Definition at line 56 of file environment.hpp.

56{};

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