plebble
us::gov::io::shell_args Class Referencefinal

#include <shell_args.h>

Public Types

typedef crypto::ripemd160::value_type hash_t
 

Public Member Functions

 shell_args (int argc, char **argv)
 
 shell_args (const string &args)
 
 shell_args (const shell_args &)
 
 ~shell_args ()
 
shell_argsoperator= (const shell_args &)
 
template<typename T >
next ()
 
template<typename T >
next (const T &default_value)
 
hash_t next_token ()
 
string next_line ()
 
int args_left () const
 
void dump (const string &prefix, ostream &os) const
 
void dump (ostream &os) const
 
 shell_args (String[] args0)
 
 shell_args (shell_args other)
 
 shell_args (String args0)
 
hash_t next_token ()
 
hash_t next_hash ()
 
PrivateKey next_priv ()
 
PublicKey next_pub ()
 
byte[] next_priv_raw ()
 
byte[] next_pub_raw ()
 
int64_t next_cash (int64_t default_value)
 
int64_t next_cash ()
 
String next_string (String default_value)
 
String next_string ()
 
uint16_t next_uint16 (uint16_t default_value)
 
uint16_t next_uint16 ()
 
uint32_t next_uint32 (uint32_t default_value)
 
uint32_t next_uint32 ()
 
int64_t next_int64 (int64_t default_value)
 
int64_t next_int64 ()
 
String next_line ()
 
int args_left ()
 
void dump (String prefix, PrintStream os)
 
void dump (PrintStream os)
 

Static Public Member Functions

static hash_t next_token (istream &is)
 

Public Attributes

bool del
 
int argc
 
char ** argv
 
int n {1}
 
String[] args
 

Member Typedef Documentation

◆ hash_t

Constructor & Destructor Documentation

◆ shell_args() [1/6]

us::gov::io::shell_args::shell_args ( int  argc,
char **  argv 
)

◆ shell_args() [2/6]

us::gov::io::shell_args::shell_args ( const string &  args)

◆ shell_args() [3/6]

us::gov::io::shell_args::shell_args ( const shell_args )

◆ ~shell_args()

us::gov::io::shell_args::~shell_args ( )

◆ shell_args() [4/6]

us.gov.io.shell_args.shell_args ( String[]  args0)
inline

References args.

◆ shell_args() [5/6]

us.gov.io.shell_args.shell_args ( shell_args  other)
inline

References args, and n.

◆ shell_args() [6/6]

us.gov.io.shell_args.shell_args ( String  args0)
inline

References args, and us.CFG.PLATFORM.

Member Function Documentation

◆ args_left() [1/2]

int us.gov.io.shell_args.args_left ( )
inline

References args, and n.

◆ args_left() [2/2]

int us::gov::io::shell_args::args_left ( ) const

◆ dump() [1/4]

void us::gov::io::shell_args::dump ( const string &  prefix,
ostream &  os 
) const

Referenced by dump().

Here is the caller graph for this function:

◆ dump() [2/4]

void us::gov::io::shell_args::dump ( ostream &  os) const

◆ dump() [3/4]

void us.gov.io.shell_args.dump ( PrintStream  os)
inline

References dump().

Here is the call graph for this function:

◆ dump() [4/4]

void us.gov.io.shell_args.dump ( String  prefix,
PrintStream  os 
)
inline

References args, and n.

◆ next() [1/2]

template<typename T >
T us::gov::io::shell_args::next ( )
inline

◆ next() [2/2]

template<typename T >
T us::gov::io::shell_args::next ( const T &  default_value)
inline

◆ next_cash() [1/2]

int64_t us.gov.io.shell_args.next_cash ( )
inline

◆ next_cash() [2/2]

int64_t us.gov.io.shell_args.next_cash ( int64_t  default_value)
inline

References args, and n.

Referenced by us.wallet.cli.hmi.tx().

Here is the caller graph for this function:

◆ next_hash()

hash_t us.gov.io.shell_args.next_hash ( )
inline

References args, and n.

Referenced by us.wallet.cli.hmi.exec(), and us.wallet.cli.hmi.tx().

Here is the caller graph for this function:

◆ next_int64() [1/2]

int64_t us.gov.io.shell_args.next_int64 ( )
inline

◆ next_int64() [2/2]

int64_t us.gov.io.shell_args.next_int64 ( int64_t  default_value)
inline

References args, and n.

Referenced by us.wallet.cli.hmi.tx().

Here is the caller graph for this function:

◆ next_line() [1/2]

string us::gov::io::shell_args::next_line ( )

◆ next_line() [2/2]

String us.gov.io.shell_args.next_line ( )
inline

References args, and n.

◆ next_priv()

PrivateKey us.gov.io.shell_args.next_priv ( )
inline

References args, us.gov.crypto.base58.decode(), us::gov::crypto::ec.get_private_key(), us::gov::crypto::ec.instance, and n.

Referenced by us.wallet.cli.hmi.exec().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ next_priv_raw()

byte [] us.gov.io.shell_args.next_priv_raw ( )
inline

References args, us.gov.crypto.base58.decode(), and n.

Here is the call graph for this function:

◆ next_pub()

PublicKey us.gov.io.shell_args.next_pub ( )
inline

References args, us.gov.crypto.base58.decode(), us::gov::crypto::ec.get_public_key(), us::gov::crypto::ec.instance, and n.

Referenced by us.wallet.cli.hmi.exec().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ next_pub_raw()

byte [] us.gov.io.shell_args.next_pub_raw ( )
inline

References args, us.gov.crypto.base58.decode(), and n.

Here is the call graph for this function:

◆ next_string() [1/2]

String us.gov.io.shell_args.next_string ( )
inline

◆ next_string() [2/2]

String us.gov.io.shell_args.next_string ( String  default_value)
inline

References args, and n.

Referenced by us.wallet.cli.hmi.exec(), us.wallet.cli.hmi.interactive_shell(), us.wallet.io.params.params(), and us.wallet.cli.hmi.tx().

Here is the caller graph for this function:

◆ next_token() [1/3]

hash_t us::gov::io::shell_args::next_token ( )

◆ next_token() [2/3]

hash_t us.gov.io.shell_args.next_token ( )
inline

References args, us.CFG.LGAS, n, and us.CFG.UGAS.

◆ next_token() [3/3]

static hash_t us::gov::io::shell_args::next_token ( istream &  is)
static

Referenced by us.wallet.cli.hmi::tx().

Here is the caller graph for this function:

◆ next_uint16() [1/2]

uint16_t us.gov.io.shell_args.next_uint16 ( )
inline

◆ next_uint16() [2/2]

uint16_t us.gov.io.shell_args.next_uint16 ( uint16_t  default_value)
inline

References args, and n.

Referenced by us.wallet.cli.hmi.exec(), us.wallet.io.params.params(), and us.wallet.cli.hmi.tx().

Here is the caller graph for this function:

◆ next_uint32() [1/2]

uint32_t us.gov.io.shell_args.next_uint32 ( )
inline

◆ next_uint32() [2/2]

uint32_t us.gov.io.shell_args.next_uint32 ( uint32_t  default_value)
inline

References args, and n.

◆ operator=()

shell_args& us::gov::io::shell_args::operator= ( const shell_args )

Member Data Documentation

◆ argc

int us::gov::io::shell_args::argc

◆ args

◆ argv

char** us::gov::io::shell_args::argv

◆ del

bool us::gov::io::shell_args::del

◆ n


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