bool CppSettings::set_Include(WrapperStr s, WrapperStr v) { read_if_needed_(); UmlCom::send_cmd(cppSettingsCmd, setCppIncludeCmd, s, v); if (UmlCom::read_bool()) { QString r = _map_includes.take(s); if (!v.isEmpty()) _map_includes.insert(s, QString(v.GetInternalRef())); return TRUE; } else return FALSE; }
void remove_preprocessor(WrapperStr & s) { remove_preprocessor(s.GetInternalRef()); }
void remove_comments(WrapperStr & s) { remove_comments(s.GetInternalRef()); }
void CppSettings::read_() { _root = UmlCom::read_string(); unsigned n; unsigned index; n = UmlCom::read_unsigned(); for (index = 0; index != n; index += 1) { UmlSettings::_builtins[index].cpp = UmlCom::read_string(); UmlSettings::_builtins[index].cpp_in = UmlCom::read_string(); UmlSettings::_builtins[index].cpp_out = UmlCom::read_string(); UmlSettings::_builtins[index].cpp_inout = UmlCom::read_string(); UmlSettings::_builtins[index].cpp_return = UmlCom::read_string(); } n = UmlCom::read_unsigned(); for (index = 0; index != n; index += 1) UmlSettings::_relation_attribute_stereotypes[index].cpp = UmlCom::read_string(); n = UmlCom::read_unsigned(); for (index = 0; index != n; index += 1) UmlSettings::_class_stereotypes[index].cpp = UmlCom::read_string(); n = UmlCom::read_unsigned(); _map_includes.clear(); if (n > _map_includes.size()) _map_includes.reserve(n); for (index = 0; index != n; index += 1) { WrapperStr t = UmlCom::read_string(); WrapperStr i = UmlCom::read_string(); _map_includes.insert(t, QString(i.GetInternalRef())); } _h_content = UmlCom::read_string(); _src_content = UmlCom::read_string(); _h_ext = UmlCom::read_string(); _src_ext = UmlCom::read_string(); _incl_with_path = UmlCom::read_bool(); _in = UmlCom::read_string(); _out = UmlCom::read_string(); _inout = UmlCom::read_string(); _return = UmlCom::read_string(); _enum_in = UmlCom::read_string(); _enum_out = UmlCom::read_string(); _enum_inout = UmlCom::read_string(); _enum_return = UmlCom::read_string(); _class_decl = UmlCom::read_string(); _external_class_decl = UmlCom::read_string(); _struct_decl = UmlCom::read_string(); _union_decl = UmlCom::read_string(); _enum_decl = UmlCom::read_string(); _typedef_decl = UmlCom::read_string(); for (index = 0; index != 3; index += 1) _attr_decl[index] = UmlCom::read_string(); _enum_item_decl = UmlCom::read_string(); for (index = 0; index != 3; index += 1) { _rel_decl[0][index] = UmlCom::read_string(); _rel_decl[1][index] = UmlCom::read_string(); } _oper_decl = UmlCom::read_string(); _oper_def = UmlCom::read_string(); _force_oper_throw = UmlCom::read_bool(); _get_visibility = (aVisibility) UmlCom::read_char(); _get_name = UmlCom::read_string(); _is_get_inline = UmlCom::read_bool(); _is_get_const = UmlCom::read_bool(); _is_get_value_const = UmlCom::read_bool(); _set_visibility = (aVisibility) UmlCom::read_char(); _set_name = UmlCom::read_string(); _is_set_inline = UmlCom::read_bool(); _is_set_param_const = UmlCom::read_bool(); _is_set_param_ref = UmlCom::read_bool(); _is_relative_path = UmlCom::read_bool(); _is_force_namespace_gen = UmlCom::read_bool(); _is_root_relative_path = UmlCom::read_bool(); _is_generate_javadoc_comment = UmlCom::read_bool(); _is_inline_force_header_in_h = UmlCom::read_bool(); _dir_regexp = UmlCom::read_string(); _dir_regexp_case_sensitive = UmlCom::read_bool(); _file_regexp = UmlCom::read_string(); _file_regexp_case_sensitive = UmlCom::read_bool(); _visibility_indent = UmlCom::read_string(); }