protean/detail/data_table_column_serializers.ipp
/* Inline helpers for creating column serializers (readers/writers) of the correct type */
/****************************************************************************************/
Inline helpers for creating column serializers (readers/writers) of the correct type
Inline helpers for creating column serializers ( readers / writers ) of the correct type
inline data_table_column_writer* make_data_table_column_binary_writer(const data_table_column_base& column, binary_writer& writer)
    {
        column_writer_allocator<data_table_column_binary_writer, binary_writer>::type writer_allocator(column, writer);
        return enum_runtime_map<data_table_column_primitive_enums, enum_equality_comparer>(
            column.type(), writer_allocator, "Cannot binary-serialize primitive datatable column of type " + variant_base::enum_to_string(column.type())
        );
    }
inline data_table_column_writer * make_data_table_column_binary_writer ( const data_table_column_base & column , binary_writer & writer ) { column_writer_allocator < data_table_column_binary_writer , binary_writer > :: type writer_allocator ( column , writer ) ; return enum_runtime_map < data_table_column_primitive_enums , enum_equality_comparer > ( column . type ( ) , writer_allocator , " " + variant_base :: enum_to_string ( column . type ( ) ) ) ; }
Inline helpers for creating column serializers (readers/writers) of the correct type
Inline helpers for creating column serializers ( readers / writers ) of the correct type