plebble
us::gov::io::cfg0 Class Reference

#include <cfg0.h>

Inheritance diagram for us::gov::io::cfg0:
Collaboration diagram for us::gov::io::cfg0:

Public Member Functions

virtual ~cfg0 ()
 
 cfg0 (const string &home)
 
 cfg0 (const cfg0 &other)
 
 cfg0 (String home_)
 
 cfg0 (cfg0 other)
 

Static Public Member Functions

static void check_platform ()
 
static bool is_big_endian ()
 
static bool mkdir (const string &d)
 
static bool file_exists (const string &f)
 
static uint32_t file_size (const string &f)
 
static bool ensure_dir (const string &d)
 
static string rewrite_path (const string &)
 
static bool dir_exists (const string &d)
 
static string abs_file (const string &home, const string &fn)
 
static void mkdir_tree (string sub, string dir)
 
static pair< us::ko, cfg0load (const string &home)
 
static void trim (string &)
 
static void to_identifier (string &)
 
static string directory_of_file (const string &file)
 
static bool ensure_writable (const string &file)
 
static string file_content (const string &file)
 
static void check_platform ()
 
static String abs_file (String home, String fn)
 
static boolean dir_exists (String d)
 
static boolean file_exists (String s)
 
static boolean ensure_dir (String d)
 
static pair< ko, cfg0load (String home)
 
static String rewrite_path (String d)
 
static byte[] read_file (String filename)
 
static String read_text_file (String filename)
 

Public Attributes

string home
 

Static Public Attributes

static const char * KO_96857
 
static const char * KO_60534
 
static final ko KO_60534 =new ko("KO 60534 Cannot create home dir.")
 

Package Attributes

String home
 

Constructor & Destructor Documentation

◆ ~cfg0()

virtual us::gov::io::cfg0::~cfg0 ( )
virtual

◆ cfg0() [1/4]

us::gov::io::cfg0::cfg0 ( const string &  home)

Referenced by load().

Here is the caller graph for this function:

◆ cfg0() [2/4]

us::gov::io::cfg0::cfg0 ( const cfg0 other)

◆ cfg0() [3/4]

us.gov.io.cfg0.cfg0 ( String  home_)
inline

References home.

◆ cfg0() [4/4]

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

References home.

Member Function Documentation

◆ abs_file() [1/2]

static string us::gov::io::cfg0::abs_file ( const string &  home,
const string &  fn 
)
static

Referenced by us::gov::io::cfg1::k_file().

Here is the caller graph for this function:

◆ abs_file() [2/2]

static String us.gov.io.cfg0.abs_file ( String  home,
String  fn 
)
inlinestatic

References home.

◆ check_platform() [1/2]

static void us::gov::io::cfg0::check_platform ( )
static

Referenced by load().

Here is the caller graph for this function:

◆ check_platform() [2/2]

static void us.gov.io.cfg0.check_platform ( )
inlinestatic

◆ dir_exists() [1/2]

static bool us::gov::io::cfg0::dir_exists ( const string &  d)
static

◆ dir_exists() [2/2]

static boolean us.gov.io.cfg0.dir_exists ( String  d)
inlinestatic

◆ directory_of_file()

static string us::gov::io::cfg0::directory_of_file ( const string &  file)
static

◆ ensure_dir() [1/2]

static bool us::gov::io::cfg0::ensure_dir ( const string &  d)
static

Referenced by load(), and us::gov::io::cfg1::write_k().

Here is the caller graph for this function:

◆ ensure_dir() [2/2]

static boolean us.gov.io.cfg0.ensure_dir ( String  d)
inlinestatic

◆ ensure_writable()

static bool us::gov::io::cfg0::ensure_writable ( const string &  file)
static

◆ file_content()

static string us::gov::io::cfg0::file_content ( const string &  file)
static

◆ file_exists() [1/2]

static bool us::gov::io::cfg0::file_exists ( const string &  f)
static

Referenced by us::gov::io::cfg1::load().

Here is the caller graph for this function:

◆ file_exists() [2/2]

static boolean us.gov.io.cfg0.file_exists ( String  s)
inlinestatic

◆ file_size()

static uint32_t us::gov::io::cfg0::file_size ( const string &  f)
static

◆ is_big_endian()

static bool us::gov::io::cfg0::is_big_endian ( )
static

◆ load() [1/2]

static pair<us::ko,cfg0> us::gov::io::cfg0::load ( const string &  home)
static

Referenced by us::gov::io::cfg1::load().

Here is the caller graph for this function:

◆ load() [2/2]

static pair<ko, cfg0> us.gov.io.cfg0.load ( String  home)
inlinestatic

References cfg0(), check_platform(), ensure_dir(), home, KO_60534, and us.ok.

Here is the call graph for this function:

◆ mkdir()

static bool us::gov::io::cfg0::mkdir ( const string &  d)
static

◆ mkdir_tree()

static void us::gov::io::cfg0::mkdir_tree ( string  sub,
string  dir 
)
static

◆ read_file()

◆ read_text_file()

static String us.gov.io.cfg0.read_text_file ( String  filename)
inlinestatic

Referenced by us.wallet.wallet.api_stream_parseable.patch_os_file_().

Here is the caller graph for this function:

◆ rewrite_path() [1/2]

static string us::gov::io::cfg0::rewrite_path ( const string &  )
static

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

Here is the caller graph for this function:

◆ rewrite_path() [2/2]

static String us.gov.io.cfg0.rewrite_path ( String  d)
inlinestatic

References us.ok.

◆ to_identifier()

static void us::gov::io::cfg0::to_identifier ( string &  )
static

◆ trim()

static void us::gov::io::cfg0::trim ( string &  )
static

Member Data Documentation

◆ home [1/2]

◆ home [2/2]

String us.gov.io.cfg0.home
package

◆ KO_60534 [1/2]

const char* us::gov::io::cfg0::KO_60534
static

Referenced by load().

◆ KO_60534 [2/2]

final ko us.gov.io.cfg0.KO_60534 =new ko("KO 60534 Cannot create home dir.")
static

◆ KO_96857

const char* us::gov::io::cfg0::KO_96857
static

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