plebble
us::gov::cli::hmi Struct Reference

#include <hmi.h>

Inheritance diagram for us::gov::cli::hmi:
Collaboration diagram for us::gov::cli::hmi:

Classes

struct  rpc_api
 

Public Types

typedef us::gov::io::params params
 
typedef us::gov::io::shell_args shell_args
 
typedef us::gov::io::cfg_daemon cfg_daemon
 
typedef us::gov::io::cfg1 cfg1
 
typedef us::gov::io::screen screen
 
typedef us::gov::socket::datagram datagram
 

Public Member Functions

 hmi (ostream &)
 
 hmi (int argc, char **argv, ostream &)
 
 hmi (const shell_args &, ostream &)
 
 hmi (const params &, ostream &)
 
virtual ~hmi ()
 
void write_rpc_client_key ()
 
void dump_diff (const string &diff_file) const
 
void dump_db (const string &snapshot_block, int detail) const
 
void print_id () const
 
virtual void setup_signals (bool on)
 
bool run_online ()
 
bool run_offline ()
 
void interactive_shell ()
 
ko exec (const string &cmd)
 
ko start ()
 
ko start (datagram::dispatcher_t *)
 
void stop ()
 
void join ()
 
ko run ()
 
ko wait_connected ()
 

Static Public Member Functions

static string parse_options (shell_args &args, params &p)
 
static void help (const params &p, ostream &os)
 
static void banner (const params &, ostream &)
 

Public Attributes

bool interactive {false}
 
gov::engine::daemondemon {nullptr}
 
rpc_apirpc_demon {nullptr}
 
cfg_daemoncfg {nullptr}
 
cfg1cfgcli {nullptr}
 
params p
 
screen scr
 
string home
 
ko ret {ok}
 

Static Public Attributes

static const char * KO_10100
 
static const char * KO_20195
 

Member Typedef Documentation

◆ cfg1

◆ cfg_daemon

◆ datagram

◆ params

◆ screen

◆ shell_args

Constructor & Destructor Documentation

◆ hmi() [1/4]

us::gov::cli::hmi::hmi ( ostream &  )

◆ hmi() [2/4]

us::gov::cli::hmi::hmi ( int  argc,
char **  argv,
ostream &   
)

◆ hmi() [3/4]

us::gov::cli::hmi::hmi ( const shell_args ,
ostream &   
)

◆ hmi() [4/4]

us::gov::cli::hmi::hmi ( const params ,
ostream &   
)

◆ ~hmi()

virtual us::gov::cli::hmi::~hmi ( )
virtual

Member Function Documentation

◆ banner()

static void us::gov::cli::hmi::banner ( const params ,
ostream &   
)
static

◆ dump_db()

void us::gov::cli::hmi::dump_db ( const string &  snapshot_block,
int  detail 
) const

◆ dump_diff()

void us::gov::cli::hmi::dump_diff ( const string &  diff_file) const

◆ exec()

ko us::gov::cli::hmi::exec ( const string &  cmd)

◆ help()

static void us::gov::cli::hmi::help ( const params p,
ostream &  os 
)
static

◆ interactive_shell()

void us::gov::cli::hmi::interactive_shell ( )

◆ join()

void us::gov::cli::hmi::join ( )

◆ parse_options()

static string us::gov::cli::hmi::parse_options ( shell_args args,
params p 
)
static

◆ print_id()

void us::gov::cli::hmi::print_id ( ) const

◆ run()

ko us::gov::cli::hmi::run ( )

Referenced by main().

Here is the caller graph for this function:

◆ run_offline()

bool us::gov::cli::hmi::run_offline ( )

◆ run_online()

bool us::gov::cli::hmi::run_online ( )

◆ setup_signals()

virtual void us::gov::cli::hmi::setup_signals ( bool  on)
inlinevirtual

Reimplemented in hmi_t.

◆ start() [1/2]

ko us::gov::cli::hmi::start ( )

◆ start() [2/2]

ko us::gov::cli::hmi::start ( datagram::dispatcher_t )

◆ stop()

void us::gov::cli::hmi::stop ( )

Referenced by sig_handler().

Here is the caller graph for this function:

◆ wait_connected()

ko us::gov::cli::hmi::wait_connected ( )

◆ write_rpc_client_key()

void us::gov::cli::hmi::write_rpc_client_key ( )

Member Data Documentation

◆ cfg

cfg_daemon* us::gov::cli::hmi::cfg {nullptr}

◆ cfgcli

cfg1* us::gov::cli::hmi::cfgcli {nullptr}

◆ demon

gov::engine::daemon* us::gov::cli::hmi::demon {nullptr}

◆ home

string us::gov::cli::hmi::home

◆ interactive

bool us::gov::cli::hmi::interactive {false}

◆ KO_10100

const char* us::gov::cli::hmi::KO_10100
static

◆ KO_20195

const char* us::gov::cli::hmi::KO_20195
static

◆ p

params us::gov::cli::hmi::p

Referenced by main().

◆ ret

ko us::gov::cli::hmi::ret {ok}

Referenced by main().

◆ rpc_demon

rpc_api* us::gov::cli::hmi::rpc_demon {nullptr}

◆ scr

screen us::gov::cli::hmi::scr

Referenced by main(), and sig_handler().


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