Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
environment.hpp File Reference
#include <chainbase/pinnable_mapped_file.hpp>
#include <iomanip>
Include dependency graph for environment.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  chainbase::environment
 
struct  chainbase::db_header
 

Namespaces

namespace  chainbase
 

Enumerations

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 }
 

Functions

struct chainbase::environment chainbase::__attribute__ ((packed))
 
 environment ()
 
bool operator== (const environment &other)
 
bool operator!= (const environment &other)
 
std::ostream & chainbase::operator<< (std::ostream &os, const chainbase::environment &dt)
 

Variables

constexpr size_t chainbase::header_size = 1024
 
constexpr uint64_t chainbase::header_id = 0x3242444f49534f45ULL
 
bool debug
 
os_t os
 
arch_t arch
 
unsigned boost_version = BOOST_VERSION
 
uint8_t reserved [512] = {}
 
char compiler [256] = {}
 
uint64_t id = header_id
 
bool dirty = false
 
environment dbenviron
 
constexpr size_t chainbase::header_dirty_bit_offset = offsetof(db_header, dirty)
 

Enumeration Type Documentation

◆ arch_t

enum arch_t : unsigned char
Enumerator
ARCH_X86_64 
ARCH_ARM 
ARCH_RISCV 
ARCH_OTHER 

Definition at line 10 of file environment.hpp.

10 {
11 environment() {
12 strncpy(compiler, __VERSION__, sizeof(compiler)-1);
13 }
14
15 enum os_t : unsigned char {
os_t
environment()
char compiler[256]

◆ os_t

enum os_t : unsigned char
Enumerator
OS_LINUX 
OS_MACOS 
OS_WINDOWS 
OS_OTHER 

Definition at line 4 of file environment.hpp.

5 {
6
7constexpr size_t header_size = 1024;
8constexpr uint64_t header_id = 0x3242444f49534f45ULL; //"SYSIODB2" little endian
9
constexpr size_t header_size
constexpr uint64_t header_id
unsigned __int64 uint64_t
Definition stdint.h:136

Function Documentation

◆ environment()

__attribute__::environment ( )

Definition at line 0 of file environment.hpp.

Here is the caller graph for this function:

◆ operator!=()

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

Definition at line 51 of file environment.hpp.

◆ operator==()

bool __attribute__::operator== ( const environment & other)

Definition at line 48 of file environment.hpp.

Here is the caller graph for this function:

Variable Documentation

◆ arch

arch_t arch
Initial value:
=
@ ARCH_OTHER

Definition at line 33 of file environment.hpp.

◆ boost_version

unsigned boost_version = BOOST_VERSION

Definition at line 44 of file environment.hpp.

◆ compiler

char compiler[256] = {}

Definition at line 46 of file environment.hpp.

◆ dbenviron

environment dbenviron

Definition at line 2 of file environment.hpp.

◆ debug

bool debug
Initial value:
=
true

Definition at line 17 of file environment.hpp.

◆ dirty

bool dirty = false

Definition at line 1 of file environment.hpp.

◆ id

uint64_t id = header_id

Definition at line 0 of file environment.hpp.

◆ os

os_t os
Initial value:
=
@ OS_OTHER

Definition at line 23 of file environment.hpp.

◆ reserved

uint8_t reserved[512] = {}

Definition at line 45 of file environment.hpp.