41 #ifndef DATRW_FORMATMODIFIER_H_VERSION 43 #define DATRW_FORMATMODIFIER_H_VERSION \ 44 "DATRW_FORMATMODIFIER_H V1.3" 63 #define DATRW_expect_no_modifier(F,M) \ 64 DATRW_report_assert(M.length()<1, \ 65 "no format modifier should be passed!\n" << \ 66 "format " << anyID( F ) \ 67 << " is not expected to handle format modifiers\n" \ 68 << "any modifiers are silently ignored!"); 76 #define DATRW_assert_modifiers_are_recognized(S,F) \ 77 if (!S.allarechecked()) \ 79 std::cerr << "ERROR (" << F << "):" << std::endl; \ 80 S.notchecked(std::cerr); \ 82 DATRW_assert(S.allarechecked(), "ERROR: additional unrecognized modifiers"); 89 namespace formatmodifiers {
123 const std::string& delimiter=
":",
124 const std::string& assign=
"=");
144 const unsigned int& width):
146 std::ostream&
operator()(
const std::string& key,
147 const std::string& val);
148 std::ostream&
operator()(
const std::string& key);
165 {
return(mh() << c); }
190 std::string
value(
const std::string& k,
191 const std::string& dev=
"false")
const;
200 std::istringstream&
operator()(
const std::string& k,
201 const std::string& dev=
"false")
const;
206 bool isset(
const std::string& k)
const;
223 #endif // DATRW_FORMATMODIFIER_H_VERSION (includeguard)
exception class declaration for libdatrwxx (prototypes)
Root namespace of library.