geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::FilePolicy Class Reference

#include <FilePolicy.hpp>

Public Member Functions

 FilePolicy ()=delete
 
 FilePolicy (const FilePolicy &other)=delete
 
FilePolicyoperator= (const FilePolicy &other)=delete
 
 FilePolicy (const std::string &policy_path, const std::vector< std::string > &policy_names)
 
virtual ~FilePolicy ()=default
 
std::vector< double > get_policy (void)
 Read policy values from a JSON file. More...
 

Constructor & Destructor Documentation

◆ FilePolicy() [1/3]

geopm::FilePolicy::FilePolicy ( )
delete

◆ FilePolicy() [2/3]

geopm::FilePolicy::FilePolicy ( const FilePolicy other)
delete

◆ FilePolicy() [3/3]

geopm::FilePolicy::FilePolicy ( const std::string &  policy_path,
const std::vector< std::string > &  policy_names 
)

◆ ~FilePolicy()

virtual geopm::FilePolicy::~FilePolicy ( )
virtualdefault

Member Function Documentation

◆ get_policy()

std::vector< double > geopm::FilePolicy::get_policy ( void  )

Read policy values from a JSON file.

Parameters
[in]policy_pathLocation of the policy JSON file.
[in]policy_namesExpected policy field names as determined by the Agent.
Returns
The policy values read.

◆ operator=()

FilePolicy& geopm::FilePolicy::operator= ( const FilePolicy other)
delete

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