1 #ifndef fhiclcpp_types_TableAs_h 2 #define fhiclcpp_types_TableAs_h 47 template <
typename T,
typename Config>
100 template <
typename T,
typename Config>
105 template <
typename T,
typename Config>
112 template <
typename T,
typename Config>
124 template <
typename T,
typename Config>
129 template <
typename T,
typename Config>
132 ,
t_{std::make_shared<T>(
t)}
137 template <
typename T,
typename Config>
145 ,
t_{std::make_shared<T>(
t)}
150 template <
typename T,
typename Config>
155 "N.B. The following table is converted to type:";
157 " '" + cet::demangle_symbol(
typeid(
T).
name()) +
"'";
161 std::ostringstream oss;
162 oss << preface <<
'\n' << name << user_comment;
163 return Comment{oss.str().c_str()};
170 namespace has_insertion_operator_impl {
175 template <
typename T>
181 yes&
test(std::ostream&);
184 template <
typename T>
186 static std::ostream&
s;
188 static bool const value =
sizeof(
test(s << t)) ==
sizeof(yes);
192 template <
typename T>
197 template <
typename T>
201 return " A default value is present, but it cannot be\n" 202 " printed out since no 'operator<<' overload has\n" 203 " been provided for the above type.";
208 template <
typename T>
212 std::ostringstream os;
213 os <<
" with a default value of:\n" 221 template <
typename T,
typename Config>
225 std::string const preface{
"N.B. The following table is converted to type:"};
227 cet::demangle_symbol(
typeid(
T).
name()) +
"'"};
235 std::ostringstream oss;
236 oss << preface <<
'\n' 238 << stringified_default(t) << user_comment;
239 return Comment{oss.str().c_str()};
OptionalTable< Config > tableObj_
Comment conversion_comment(Comment &&comment) const
std::string operator()(T const &)
typename OptionalTable< Config >::value_type via_type
def convert(inputfile, outputfile="wire-cell-garfield-fine-response.json.bz2", average=False, shaped=False)
std::string operator()(T const &t)
std::ostream & operator<<(std::ostream &, ParameterSetID const &)
void function(int client, int *resource, int parblock, int *test, int p)
void set_par_style(par_style const vt)
cet::coded_exception< error, detail::translate > exception