1 #ifndef CASM_DatumFormatterAdapter
2 #define CASM_DatumFormatterAdapter
10 template <
typename ToType,
typename FromType>
17 template <
typename ExternalType,
typename InternalType>
56 std::unique_ptr<DatumFormatterAdapter<ExternalType, InternalType>>
clone()
58 return std::unique_ptr<DatumFormatterAdapter<ExternalType, InternalType>>(
62 bool init(ExternalType
const &_template_obj)
const override {
66 bool validate(ExternalType
const &_data_obj)
const override {
71 ExternalType
const &_template_obj)
const override {
75 std::string
long_header(ExternalType
const &_template_obj)
const override {
79 std::string
short_header(ExternalType
const &_template_obj)
const override {
90 void print(ExternalType
const &_data_obj, std::ostream &_stream,
91 Index pass_index = 0)
const override {
96 Index pass_index = 0)
const override {
121 template <
typename ExternalType,
typename InternalType>
A 'cloneable_ptr' can be used in place of 'unique_ptr'.
DatumFormatterAdapter< ExternalType, InternalType > make_datum_formatter_adapter(BaseDatumFormatter< InternalType > const &_base_formatter)
INDEX_TYPE Index
For long integer indexing:
Non-std smart pointer classes and functions.