geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | Static Public Member Functions | List of all members
geopm::Admin Class Reference

#include <Admin.hpp>

Public Member Functions

 Admin ()
 
 Admin (const std::string &default_config_path, const std::string &override_config_path)
 
void main (int argc, const char **argv, std::ostream &std_out, std::ostream &std_err)
 
std::string run (bool do_default, bool do_override)
 
OptionParser parser (std::ostream &std_out, std::ostream &std_err)
 
std::string default_config (void)
 
std::string override_config (void)
 
std::string check_node (void)
 
void check_config (const std::map< std::string, std::string > &config_map, std::vector< std::string > &policy_names, std::vector< double > &policy_vals)
 
std::string print_config (const std::map< std::string, std::string > &config_map, const std::map< std::string, std::string > &override_map, const std::vector< std::string > &policy_names, const std::vector< double > &policy_vals)
 

Static Public Member Functions

static std::vector< std::string > dup_keys (const std::map< std::string, std::string > &map_a, const std::map< std::string, std::string > &map_b)
 

Constructor & Destructor Documentation

◆ Admin() [1/2]

geopm::Admin::Admin ( )

◆ Admin() [2/2]

geopm::Admin::Admin ( const std::string &  default_config_path,
const std::string &  override_config_path 
)

Member Function Documentation

◆ check_config()

void geopm::Admin::check_config ( const std::map< std::string, std::string > &  config_map,
std::vector< std::string > &  policy_names,
std::vector< double > &  policy_vals 
)

◆ check_node()

std::string geopm::Admin::check_node ( void  )

◆ default_config()

std::string geopm::Admin::default_config ( void  )

◆ dup_keys()

std::vector< std::string > geopm::Admin::dup_keys ( const std::map< std::string, std::string > &  map_a,
const std::map< std::string, std::string > &  map_b 
)
static

◆ main()

void geopm::Admin::main ( int  argc,
const char **  argv,
std::ostream &  std_out,
std::ostream &  std_err 
)

◆ override_config()

std::string geopm::Admin::override_config ( void  )

◆ parser()

OptionParser geopm::Admin::parser ( std::ostream &  std_out,
std::ostream &  std_err 
)

◆ print_config()

std::string geopm::Admin::print_config ( const std::map< std::string, std::string > &  config_map,
const std::map< std::string, std::string > &  override_map,
const std::vector< std::string > &  policy_names,
const std::vector< double > &  policy_vals 
)

◆ run()

std::string geopm::Admin::run ( bool  do_default,
bool  do_override 
)

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