All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
icarus::KeyValuesData::ConversionFailed Struct Reference

#include <KeyValuesData.h>

Inheritance diagram for icarus::KeyValuesData::ConversionFailed:
icarus::KeyValuesData::ErrorOnKey icarus::KeyValuesData::Error

Public Member Functions

 ConversionFailed (std::string const &key, std::string const &s, std::string const &tname="")
 
- Public Member Functions inherited from icarus::KeyValuesData::ErrorOnKey
 ErrorOnKey (std::string const &key, std::string const &msg)
 
- Public Member Functions inherited from icarus::KeyValuesData::Error
 Error (std::string msg)
 

Static Public Member Functions

template<typename T >
static ConversionFailed makeFor (std::string const &key, std::string const &s)
 
template<typename T >
static ConversionFailed makeFor (std::string const &key, std::size_t index, std::string const &s)
 

Detailed Description

Definition at line 579 of file KeyValuesData.h.

Constructor & Destructor Documentation

icarus::KeyValuesData::ConversionFailed::ConversionFailed ( std::string const &  key,
std::string const &  s,
std::string const &  tname = "" 
)
inline

Definition at line 581 of file KeyValuesData.h.

584  : ErrorOnKey{ key,
585  "conversion of '" + s + "'"
586  + (tname.empty()? "": (" to type '" + tname + "'")) + " failed"
587  }
588  {}
ErrorOnKey(std::string const &key, std::string const &msg)
string tname
Definition: names.py:3
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60

Member Function Documentation

template<typename T >
static ConversionFailed icarus::KeyValuesData::ConversionFailed::makeFor ( std::string const &  key,
std::string const &  s 
)
inlinestatic

Definition at line 591 of file KeyValuesData.h.

592  { return { key, s, typeid(T).name() }; }
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
then echo fcl name
template<typename T >
static ConversionFailed icarus::KeyValuesData::ConversionFailed::makeFor ( std::string const &  key,
std::size_t  index,
std::string const &  s 
)
inlinestatic

Definition at line 596 of file KeyValuesData.h.

597  { return makeFor<T>(key + "[" + std::to_string(index) + "]", s); }
std::string to_string(WindowPattern const &pattern)
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60

The documentation for this struct was generated from the following file: