コード例 #1
0
std::ostream& operator<<(std::ostream& s, const nested_type_info& v) {
    boost::io::ios_flags_saver ifs(s);
    s.setf(std::ios_base::boolalpha);
    s.setf(std::ios::fixed, std::ios::floatfield);
    s.precision(6);
    s.setf(std::ios::showpoint);

    s << " { "
      << "\"__type__\": " << "\"dogen::cpp::nested_type_info\"" << ", "
      << "\"name\": " << "\"" << tidy_up_string(v.name()) << "\"" << ", "
      << "\"documentation\": " << "\"" << tidy_up_string(v.documentation()) << "\"" << ", "
      << "\"identifiable_name\": " << "\"" << tidy_up_string(v.identifiable_name()) << "\"" << ", "
      << "\"complete_name\": " << "\"" << tidy_up_string(v.complete_name()) << "\"" << ", "
      << "\"complete_identifiable_name\": " << "\"" << tidy_up_string(v.complete_identifiable_name()) << "\"" << ", "
      << "\"is_primitive\": " << v.is_primitive() << ", "
      << "\"is_enumeration\": " << v.is_enumeration() << ", "
      << "\"is_string_like\": " << v.is_string_like() << ", "
      << "\"is_char_like\": " << v.is_char_like() << ", "
      << "\"is_int_like\": " << v.is_int_like() << ", "
      << "\"is_sequence_container\": " << v.is_sequence_container() << ", "
      << "\"is_associative_container\": " << v.is_associative_container() << ", "
      << "\"is_smart_pointer\": " << v.is_smart_pointer() << ", "
      << "\"is_optional_like\": " << v.is_optional_like() << ", "
      << "\"is_variant_like\": " << v.is_variant_like() << ", "
      << "\"children\": " << v.children() << ", "
      << "\"namespaces\": " << v.namespaces() << ", "
      << "\"is_filesystem_path\": " << v.is_filesystem_path() << ", "
      << "\"is_date\": " << v.is_date() << ", "
      << "\"is_ptime\": " << v.is_ptime() << ", "
      << "\"is_time_duration\": " << v.is_time_duration() << ", "
      << "\"is_pair\": " << v.is_pair()
      << " }";
    return(s);
}
コード例 #2
0
ファイル: class_j_io.cpp プロジェクト: pgannon/dogen
inline std::ostream& operator<<(std::ostream& s, const std::pair<std::string, std::string>& v) {
    s << "{ " << "\"__type__\": " << "\"std::pair\"" << ", ";

    s << "\"first\": " << "\"" << tidy_up_string(v.first) << "\"" << ", ";
    s << "\"second\": " << "\"" << tidy_up_string(v.second) << "\"";
    s << " }";
    return s;
}
コード例 #3
0
std::ostream& operator<<(std::ostream& s, const locator_facet_configuration& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::quilt::cpp::formattables::locator_facet_configuration\"" << ", "
      << "\"directory\": " << "\"" << tidy_up_string(v.directory()) << "\"" << ", "
      << "\"postfix\": " << "\"" << tidy_up_string(v.postfix()) << "\""
      << " }";
    return(s);
}
コード例 #4
0
ファイル: name_io.cpp プロジェクト: memsharded/dogen
std::ostream& operator<<(std::ostream& s, const name& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::dynamic::name\"" << ", "
      << "\"simple\": " << "\"" << tidy_up_string(v.simple()) << "\"" << ", "
      << "\"qualified\": " << "\"" << tidy_up_string(v.qualified()) << "\""
      << " }";
    return(s);
}
コード例 #5
0
ファイル: enumerator_io.cpp プロジェクト: memsharded/dogen
std::ostream& operator<<(std::ostream& s, const enumerator& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::yarn::enumerator\"" << ", "
      << "\"documentation\": " << "\"" << tidy_up_string(v.documentation()) << "\"" << ", "
      << "\"name\": " << "\"" << tidy_up_string(v.name()) << "\"" << ", "
      << "\"value\": " << "\"" << tidy_up_string(v.value()) << "\""
      << " }";
    return(s);
}
コード例 #6
0
std::ostream& operator<<(std::ostream& s, const connection& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::dia::connection\"" << ", "
      << "\"handle\": " << "\"" << tidy_up_string(v.handle()) << "\"" << ", "
      << "\"to\": " << "\"" << tidy_up_string(v.to()) << "\"" << ", "
      << "\"connection_slot\": " << "\"" << tidy_up_string(v.connection_slot()) << "\""
      << " }";
    return(s);
}
コード例 #7
0
ファイル: qname_io.cpp プロジェクト: pgannon/dogen
std::ostream& operator<<(std::ostream& s, const qname& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::sml::qname\"" << ", "
      << "\"model_name\": " << "\"" << tidy_up_string(v.model_name()) << "\"" << ", "
      << "\"external_module_path\": " << v.external_module_path() << ", "
      << "\"module_path\": " << v.module_path() << ", "
      << "\"simple_name\": " << "\"" << tidy_up_string(v.simple_name()) << "\""
      << " }";
    return(s);
}
コード例 #8
0
ファイル: cmakelists_info_io.cpp プロジェクト: traw/dogen
std::ostream& operator<<(std::ostream& s, const cmakelists_info& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::cpp::cmakelists_info\"" << ", "
      << "\"file_path\": " << "\"" << v.file_path().generic_string() << "\"" << ", "
      << "\"model_name\": " << "\"" << tidy_up_string(v.model_name()) << "\"" << ", "
      << "\"product_name\": " << "\"" << tidy_up_string(v.product_name()) << "\"" << ", "
      << "\"file_name\": " << "\"" << tidy_up_string(v.file_name()) << "\""
      << " }";
    return(s);
}
コード例 #9
0
std::ostream& operator<<(std::ostream& s, const stitching_properties& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::stitch::stitching_properties\"" << ", "
      << "\"stream_variable_name\": " << "\"" << tidy_up_string(v.stream_variable_name()) << "\"" << ", "
      << "\"relative_output_directory\": " << "\"" << v.relative_output_directory().generic_string() << "\"" << ", "
      << "\"inclusion_dependencies\": " << v.inclusion_dependencies() << ", "
      << "\"containing_namespaces\": " << v.containing_namespaces() << ", "
      << "\"wale_template\": " << "\"" << tidy_up_string(v.wale_template()) << "\"" << ", "
      << "\"wale_kvps\": " << v.wale_kvps()
      << " }";
    return(s);
}
コード例 #10
0
inline std::ostream& operator<<(std::ostream& s, const std::unordered_map<std::string, std::string>& v) {
    s << "[";
    for (auto i(v.begin()); i != v.end(); ++i) {
        if (i != v.begin()) s << ", ";
        s << "[ { " << "\"__type__\": " << "\"key\"" << ", " << "\"data\": ";
        s << "\"" << tidy_up_string(i->first) << "\"";
        s << " }, { " << "\"__type__\": " << "\"value\"" << ", " << "\"data\": ";
        s << "\"" << tidy_up_string(i->second) << "\"";
        s << " } ]";
    }
    s << " ] ";
    return s;
}
コード例 #11
0
std::ostream& operator<<(std::ostream& s, const immutable_one_non_primitive& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::stereotypes::immutable_one_non_primitive\"" << ", "
      << "\"prop_0\": " << "\"" << tidy_up_string(v.prop_0()) << "\""
      << " }";
    return(s);
}
コード例 #12
0
ファイル: child_node_io.cpp プロジェクト: memsharded/dogen
std::ostream& operator<<(std::ostream& s, const child_node& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::dia::child_node\"" << ", "
      << "\"parent\": " << "\"" << tidy_up_string(v.parent()) << "\""
      << " }";
    return(s);
}
コード例 #13
0
std::ostream& operator<<(std::ostream& s, const real& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::dia::real\"" << ", "
      << "\"value\": " << "\"" << tidy_up_string(v.value()) << "\""
      << " }";
    return(s);
}
コード例 #14
0
std::ostream& operator<<(std::ostream& s, const nef_polyhedron& v) {
    s << " { "
      << "\"__type__\": " << "\"neurite::geometry::nef_polyhedron\"" << ", "
      << "\"polygons\": " << "\"" << tidy_up_string(v.polygons()) << "\""
      << " }";
    return(s);
}
コード例 #15
0
ファイル: reference_io.cpp プロジェクト: pgannon/dogen
std::ostream& operator<<(std::ostream& s, const reference& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::config::reference\"" << ", "
      << "\"path\": " << "\"" << v.path().generic_string() << "\"" << ", "
      << "\"external_module_path\": " << "\"" << tidy_up_string(v.external_module_path()) << "\""
      << " }";
    return(s);
}
コード例 #16
0
ファイル: licence_io.cpp プロジェクト: pgannon/dogen
std::ostream& operator<<(std::ostream& s, const licence& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::formatters::licence\"" << ", "
      << "\"copyright_notices\": " << v.copyright_notices() << ", "
      << "\"text\": " << "\"" << tidy_up_string(v.text()) << "\""
      << " }";
    return(s);
}
コード例 #17
0
std::ostream& operator<<(std::ostream& s, const processed_comment& v) {
    boost::io::ios_flags_saver ifs(s);
    s.setf(std::ios_base::boolalpha);
    s.setf(std::ios::fixed, std::ios::floatfield);
    s.precision(6);
    s.setf(std::ios::showpoint);

    s << " { "
      << "\"__type__\": " << "\"dogen::yarn::dia::processed_comment\"" << ", "
      << "\"documentation\": " << "\"" << tidy_up_string(v.documentation()) << "\"" << ", "
      << "\"key_value_pairs\": " << v.key_value_pairs() << ", "
      << "\"applicable_to_parent_object\": " << v.applicable_to_parent_object() << ", "
      << "\"original_content\": " << "\"" << tidy_up_string(v.original_content()) << "\"" << ", "
      << "\"external_modules\": " << "\"" << tidy_up_string(v.external_modules()) << "\""
      << " }";
    return(s);
}
コード例 #18
0
ファイル: block_io.cpp プロジェクト: memsharded/dogen
std::ostream& operator<<(std::ostream& s, const block& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::stitch::block\"" << ", "
      << "\"type\": " << v.type() << ", "
      << "\"content\": " << "\"" << tidy_up_string(v.content()) << "\""
      << " }";
    return(s);
}
コード例 #19
0
std::ostream& operator<<(std::ostream& s, const fluent& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::stereotypes::fluent\"" << ", "
      << "\"prop_0\": " << v.prop_0() << ", "
      << "\"prop_1\": " << "\"" << tidy_up_string(v.prop_1()) << "\"" << ", "
      << "\"prop_2\": " << v.prop_2()
      << " }";
    return(s);
}
コード例 #20
0
ファイル: property_io.cpp プロジェクト: pgannon/dogen
std::ostream& operator<<(std::ostream& s, const property& v) {
    boost::io::ios_flags_saver ifs(s);
    s.setf(std::ios_base::boolalpha);
    s.setf(std::ios::fixed, std::ios::floatfield);
    s.precision(6);
    s.setf(std::ios::showpoint);

    s << " { "
      << "\"__type__\": " << "\"dogen::sml::property\"" << ", "
      << "\"documentation\": " << "\"" << tidy_up_string(v.documentation()) << "\"" << ", "
      << "\"extensions\": " << v.extensions() << ", "
      << "\"name\": " << "\"" << tidy_up_string(v.name()) << "\"" << ", "
      << "\"type\": " << v.type() << ", "
      << "\"is_immutable\": " << v.is_immutable() << ", "
      << "\"is_fluent\": " << v.is_fluent()
      << " }";
    return(s);
}
コード例 #21
0
std::ostream& operator<<(std::ostream& s, const composite& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::dia::composite\"" << ", "
      << "\"type\": " << "\"" << tidy_up_string(v.type()) << "\"" << ", "
      << "\"value\": " << v.value() << ", "
      << "\"inner_composite\": " << v.inner_composite()
      << " }";
    return(s);
}
コード例 #22
0
inline std::ostream& operator<<(std::ostream& s, const std::list<std::string>& v) {
    s << "[ ";
    for (auto i(v.begin()); i != v.end(); ++i) {
        if (i != v.begin()) s << ", ";
        s << "\"" << tidy_up_string(*i) << "\"";
    }
    s << "] ";
    return s;
}
コード例 #23
0
ファイル: parent_info_io.cpp プロジェクト: traw/dogen
std::ostream& operator<<(std::ostream& s, const parent_info& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::cpp::parent_info\"" << ", "
      << "\"name\": " << "\"" << tidy_up_string(v.name()) << "\"" << ", "
      << "\"namespaces\": " << v.namespaces() << ", "
      << "\"properties\": " << v.properties()
      << " }";
    return(s);
}
コード例 #24
0
std::ostream& operator<<(std::ostream& s, const source_file& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::cpp::source_file\"" << ", "
      << "\"documentation\": " << "\"" << tidy_up_string(v.documentation()) << "\"" << ", "
      << "\"descriptor\": " << v.descriptor() << ", "
      << "\"class_info\": " << v.class_info() << ", "
      << "\"enum_info\": " << v.enum_info() << ", "
      << "\"exception_info\": " << v.exception_info() << ", "
      << "\"registrar_info\": " << v.registrar_info() << ", "
      << "\"header_guard\": " << "\"" << tidy_up_string(v.header_guard()) << "\"" << ", "
      << "\"system_includes\": " << v.system_includes() << ", "
      << "\"user_includes\": " << v.user_includes() << ", "
      << "\"file_path\": " << "\"" << v.file_path().generic_string() << "\"" << ", "
      << "\"namespace_info\": " << v.namespace_info() << ", "
      << "\"visitor_info\": " << v.visitor_info() << ", "
      << "\"relative_path\": " << "\"" << v.relative_path().generic_string() << "\""
      << " }";
    return(s);
}
コード例 #25
0
ファイル: location_io.cpp プロジェクト: memsharded/dogen
std::ostream& operator<<(std::ostream& s, const location& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::yarn::location\"" << ", "
      << "\"external_modules\": " << v.external_modules() << ", "
      << "\"model_modules\": " << v.model_modules() << ", "
      << "\"internal_modules\": " << v.internal_modules() << ", "
      << "\"element\": " << "\"" << tidy_up_string(v.element()) << "\""
      << " }";
    return(s);
}
コード例 #26
0
std::ostream& operator<<(std::ostream& s, const decoration_configuration& v) {
    boost::io::ios_flags_saver ifs(s);
    s.setf(std::ios_base::boolalpha);
    s.setf(std::ios::fixed, std::ios::floatfield);
    s.precision(6);
    s.setf(std::ios::showpoint);

    s << " { "
      << "\"__type__\": " << "\"dogen::formatters::decoration_configuration\"" << ", "
      << "\"generate_decoration\": " << v.generate_decoration() << ", "
      << "\"copyright_notices\": " << v.copyright_notices() << ", "
      << "\"licence_name\": " << "\"" << tidy_up_string(v.licence_name()) << "\"" << ", "
      << "\"modeline_group_name\": " << "\"" << tidy_up_string(v.modeline_group_name()) << "\"" << ", "
      << "\"marker_add_date_time\": " << v.marker_add_date_time() << ", "
      << "\"marker_add_warning\": " << v.marker_add_warning() << ", "
      << "\"marker_message\": " << "\"" << tidy_up_string(v.marker_message()) << "\""
      << " }";
    return(s);
}
コード例 #27
0
ファイル: no_keys_io.cpp プロジェクト: memsharded/dogen
std::ostream& operator<<(std::ostream& s, const no_keys& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::test_models::database::no_keys\"" << ", "
      << "\"prop_0\": " << v.prop_0() << ", "
      << "\"prop_1\": " << v.prop_1() << ", "
      << "\"prop_2\": " << "\"" << tidy_up_string(v.prop_2()) << "\"" << ", "
      << "\"prop_3\": " << "\"" << v.prop_3() << "\""
      << " }";
    return(s);
}
コード例 #28
0
ファイル: modeline_io.cpp プロジェクト: pgannon/dogen
std::ostream& operator<<(std::ostream& s, const modeline& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::formatters::modeline\"" << ", "
      << "\"name\": " << "\"" << tidy_up_string(v.name()) << "\"" << ", "
      << "\"editor\": " << v.editor() << ", "
      << "\"location\": " << v.location() << ", "
      << "\"fields\": " << v.fields()
      << " }";
    return(s);
}
コード例 #29
0
std::ostream& operator<<(std::ostream& s, const artefact_properties& v) {
    boost::io::ios_flags_saver ifs(s);
    s.setf(std::ios_base::boolalpha);
    s.setf(std::ios::fixed, std::ios::floatfield);
    s.precision(6);
    s.setf(std::ios::showpoint);

    s << " { "
      << "\"__type__\": " << "\"dogen::quilt::cpp::formattables::artefact_properties\"" << ", "
      << "\"enabled\": " << v.enabled() << ", "
      << "\"overwrite\": " << v.overwrite() << ", "
      << "\"file_path\": " << "\"" << v.file_path().generic_string() << "\"" << ", "
      << "\"header_guard\": " << "\"" << tidy_up_string(v.header_guard()) << "\"" << ", "
      << "\"inclusion_dependencies\": " << v.inclusion_dependencies() << ", "
      << "\"formatting_style\": " << v.formatting_style() << ", "
      << "\"formatting_input\": " << "\"" << tidy_up_string(v.formatting_input()) << "\""
      << " }";
    return(s);
}
コード例 #30
0
std::ostream& operator<<(std::ostream& s, const stitching_settings& v) {
    s << " { "
      << "\"__type__\": " << "\"dogen::stitch::stitching_settings\"" << ", "
      << "\"stream_variable_name\": " << "\"" << tidy_up_string(v.stream_variable_name()) << "\"" << ", "
      << "\"template_path\": " << v.template_path() << ", "
      << "\"output_path\": " << v.output_path() << ", "
      << "\"relative_output_directory\": " << v.relative_output_directory() << ", "
      << "\"inclusion_dependencies\": " << v.inclusion_dependencies() << ", "
      << "\"containing_namespaces\": " << v.containing_namespaces()
      << " }";
    return(s);
}