FACT++  1.0
bool StateMachineRateControl::GetConfig ( Configuration conf,
const string &  name,
const string &  sub,
uint16_t &  rc 
)
inline

Definition at line 848 of file ratecontrol.cc.

References Error(), Configuration::GetDef(), and Configuration::HasDef().

849  {
850  if (conf.HasDef(name, sub))
851  {
852  rc = conf.GetDef<uint16_t>(name, sub);
853  return true;
854  }
855 
856  Error("Neither "+name+"default nor "+name+sub+" found.");
857  return false;
858  }
T GetDef(const std::string &var, const S &val)
int Error(const std::string &str)
Definition: MessageImp.h:49
bool HasDef(const std::string &var, const T &val)

+ Here is the call graph for this function: