diff options
Diffstat (limited to 'Foo')
-rw-r--r-- | Foo/AudioManagerCodestyle.xml | 155 | ||||
-rwxr-xr-x | Foo/EA_Code_GEN_templates_AM_v6.xml | 112 | ||||
-rw-r--r-- | Foo/LifecycleConsumer.xml | 23 | ||||
-rw-r--r-- | Foo/genivi.audiomanager.service | 34 |
4 files changed, 324 insertions, 0 deletions
diff --git a/Foo/AudioManagerCodestyle.xml b/Foo/AudioManagerCodestyle.xml new file mode 100644 index 0000000..0ecdb53 --- /dev/null +++ b/Foo/AudioManagerCodestyle.xml @@ -0,0 +1,155 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<profiles version="1"> +<profile kind="CodeFormatterProfile" name="AudioManager" version="1"> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.lineSplit" value="800"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_base_types" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.keep_else_statement_on_same_line" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.indent_switchstatements_compare_to_switch" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_exception_specification" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_base_types" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_body_declarations_compare_to_access_specifier" value="true"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_exception_specification" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_template_arguments" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_declarator_list" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_bracket" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.tabulation.size" value="4"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_before_else_in_if_statement" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_enumerator_list" value="48"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_declarator_list" value="16"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_empty_lines" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> +<setting id="org.eclipse.cdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.put_empty_statement_on_new_line" value="true"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.brace_position_for_method_declaration" value="next_line"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_closing_angle_bracket_in_template_arguments" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_colon_in_base_clause" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_declarator_list" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_between_empty_brackets" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_bracket" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.brace_position_for_block" value="next_line"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.brace_position_for_type_declaration" value="next_line"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_angle_bracket_in_template_arguments" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_expression_list" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_angle_bracket_in_template_parameters" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.continuation_indentation" value="2"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_expression_list" value="0"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_template_parameters" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_binary_operator" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_conditional_expression" value="80"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_access_specifier_compare_to_type_header" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_body_declarations_compare_to_namespace_header" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_compact_if" value="0"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_template_parameters" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_expression_list" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_exception_specification" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_binary_operator" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_before_identifier_in_function_declaration" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_base_clause_in_type_declaration" value="80"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_between_empty_parens_in_exception_specification" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_declaration_compare_to_template_header" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_statements_compare_to_body" value="true"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.indent_statements_compare_to_block" value="true"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_template_arguments" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_angle_bracket_in_template_parameters" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.tabulation.char" value="space"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_angle_bracket_in_template_parameters" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.brace_position_for_block_in_case" value="next_line"/> +<setting id="org.eclipse.cdt.core.formatter.compact_else_if" value="true"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_colon_in_base_clause" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_after_template_declaration" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.keep_then_statement_on_same_line" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.brace_position_for_switch" value="next_line"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.keep_imple_if_on_one_line" value="false"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.indentation.size" value="4"/> +<setting id="org.eclipse.cdt.core.formatter.brace_position_for_namespace_declaration" value="next_line"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_angle_bracket_in_template_arguments" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.brace_position_for_array_initializer" value="next_line"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_namespace_declaration" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_bracket" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_closing_angle_bracket_in_template_parameters" value="insert"/> +<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_angle_bracket_in_template_arguments" value="do not insert"/> +</profile> +</profiles> diff --git a/Foo/EA_Code_GEN_templates_AM_v6.xml b/Foo/EA_Code_GEN_templates_AM_v6.xml new file mode 100755 index 0000000..51d6b25 --- /dev/null +++ b/Foo/EA_Code_GEN_templates_AM_v6.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="windows-1252"?>
+<RefData version="1.0" exporter="EA.25">
+ <DataSet name="C++_Code_Template" table="t_template" filter="TemplateType='#TemplateType#' and TemplateName='#TemplateName#' and Style='#Style#'" stoplist=";TemplateID;">
+ <DataRow>
+ <Column name="TemplateID" value="{D4AF302D-5FE1-4495-9514-0A42B22246BD}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="File Impl"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{9132549E-3DB8-4f57-A4CE-6E058F4BFEF6}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Class"/>
+ <Column name="Template" value="%list="Attribute" @separator="\n" @indent="" classScope=="Public" and classStereotype == "typedef" and attStereotype=="define"%
%ClassNotes%
%ClassDeclaration%
%if classStereotype == "typedef"%
%list="Attribute" @separator="\n" @indent="" classScope=="Public" and attConst=="T" and attStatic=="T" and attInitial != ""%
%endTemplate%
%ClassBody%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{126136FA-3C08-43f1-A9CF-8FF9F79220AA}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Import Section"/>
+ <Column name="Template" value="$COMMENT="WARNING: THIS IS AN ADVANCED TEMPLATE"
$COMMENT="DO NOT MODIFY UNLESS YOU ARE AN"
$COMMENT="ADVANCED USER!"
%fileImports%
%if classTag:"versionName"!=""%
#define %classTag:"versionName" ? value% %classTag:"version" ? value% "/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{16BF5D4D-A658-4823-ADBA-1BC01F5A94A0}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Class Body"/>
+ <Column name="Template" value="%if classIsInstantiated=="T"%
%endTemplate%

$pubFeatures = %list="InnerClass" @separator="\n\n" @indent="\t" classScope=="Public" or classScope=="Package"% + "\n\n"
$protFeatures = %list="InnerClass" @separator="\n\n" @indent="\t" classScope=="Protected"% + "\n\n"
$privFeatures = %list="InnerClass" @separator="\n\n" @indent="\t" classScope=="Private"% + "\n\n"
$templateArgs=%list="ClassParameter" @separator=", "%


%if classStereotype != "struct" and classStereotype != "union"%

%if genOptGenConstructor == "T" and classHasConstructor != "T"%
$cons = "\n\t" + %genOptGenConstructorInline == "T"?"inline ":""%
$cons += %className%+"()"
%if genOptGenConstructorInline == "T" or elemType == "Interface" or $templateArgs!=""%
$cons += " {\n\n\t}\n"
%else%
$cons += ";"
%endIf%
%if genOptDefaultConstructorScope == "Public" or genOptDefaultConstructorScope=="Package"%
$pubFeatures += $cons
%elseIf genOptDefaultConstructorScope == "Protected"%
$protFeatures += $cons
%else%
$privFeatures += $cons
%endIf%
%endIf%

%if genOptGenDestructor == "T" and classHasDestructor != "T"%
$cons = "\n\t"
%if genOptGenDestructorVirtual=="T" or elemType == "Interface" or classStereotype == "interface"%
$cons += "virtual "
%endIf%
$cons += %genOptGenDestructorInline == "T"?"inline ":""%
$cons += "~"+%className%+"()"
%if genOptGenDestructorInline == "T" or elemType == "Interface" or $templateArgs!=""%
$cons += " {\n\n\t}\n"
%else%
$cons += ";"
%endIf%
%if genOptDefaultDestructorScope == "Public" or genOptDefaultDestructorScope=="Package"%
$pubFeatures += $cons
%elseIf genOptDefaultDestructorScope == "Protected"%
$protFeatures += $cons
%else%
$privFeatures += $cons
%endIf%
%endIf%


%if genOptGenCopyConstructor == "T" and classHasCopyConstructor != "T"%
$cons = "\n\t" + %genOptGenCopyConstructorInline == "T"?"inline ":""%
$cons += %className%+"(const "+%className%+"& the"+%className%+")"
%if genOptGenCopyConstructorInline == "T" or elemType == "Interface" or $templateArgs!=""%
$cons += " {\n\n\t}\n"
%else%
$cons += ";"
%endIf%
%if genOptDefaultCopyConstructorScope == "Public" or genOptDefaultCopyConstructorScope=="Package"%
$pubFeatures += $cons
%elseIf genOptDefaultCopyConstructorScope == "Protected"%
$protFeatures += $cons
%else%
$privFeatures += $cons
%endIf%
%endIf%

%endIf%

%PI="\n\n"%
{
$pubFeatures = %TRIM($pubFeatures, "\n")%
$pubFeatures += "\n" + %list="Attribute" @separator="\n" @indent="\t" attScope=="Public" or linkAttAccess=="Public" or attScope=="Package" or linkAttAccess=="Package"%
$pubFeatures = %TRIM($pubFeatures, "\n")%
$pubFeatures += "\n" + %list="Operation" @separator="\n" @indent="\t" opScope=="Public" or opScope=="Package"%
$pubFeatures = %TRIM($pubFeatures, "\n")%
%if $pubFeatures != ""%
public:\n$pubFeatures
%endIf%

$protFeatures = %TRIM($protFeatures, "\n")%
$protFeatures += "\n" + %list="Attribute" @separator="\n" @indent="\t" attScope=="Protected" or linkAttAccess=="Protected"%
$protFeatures = %TRIM($protFeatures, "\n")%
$protFeatures += "\n" + %list="Operation" @separator="\n" @indent="\t" opScope=="Protected"%
$protFeatures = %TRIM($protFeatures, "\n")%
%if $protFeatures != ""%
protected:\n$protFeatures
%endIf%

$privFeatures = %TRIM($privFeatures, "\n")%
$privFeatures += "\n" + %list="Attribute" @separator="\n" @indent="\t" attScope=="Private" or linkAttAccess=="Private"%
$privFeatures = %TRIM($privFeatures, "\n")%
$privFeatures += "\n" + %list="Operation" @separator="\n" @indent="\t" opScope=="Private"%
$privFeatures = %TRIM($privFeatures, "\n")%
%if $privFeatures != ""%
private:\n$privFeatures
%endIf%
%PI=""%
}
%if classTag:"anonymous" == "true"%
 %className%
%classTag:"typeSynonyms"? ","%
%endIf%
%classTag:"typeSynonyms"=="" ? "" : " " value%
;"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{33CF5224-DA22-4c3e-B3EE-22C196E5A3BA}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Attribute Notes"/>
+ <Column name="Template" value="%if genOptGenComments != "T"%
%endTemplate%

%PI=""%
$wrapLen = %genOptWrapComment%
$style = %genOptCPPCommentStyle%

%if $style == "XML.NET"%
%XML_COMMENT($wrapLen)%
%elseIf $style == "JavaDoc"%
%JAVADOC_COMMENT($wrapLen)%
%elseIf classStereotype == "typedef"%
%if attNotes != ""%
$line = "/** " + %attNotes% + " */"
%WRAP_LINES($line, $wrapLen, "")%
%endIf%
%else%
%CSTYLE_COMMENT($wrapLen)%
%endIf%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{508D1A79-7C13-4ea3-AA6C-592F51E6FBE2}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Attribute"/>
+ <Column name="Template" value="%if classStereotype == "typedef" and attStereotype == "define"%
$wrapLen = %genOptWrapComment%
$line = %AttributeDeclaration%
%if attNotes != ""%
$line += "\t// " + %attNotes%
%endIf%
%WRAP_LINES($line, $wrapLen, "")%
%else%
%AttributeNotes%
%AttributeDeclaration%
%endTemplate%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{A715E4AD-F3B8-416b-9A9A-14187198C2CC}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Operation"/>
+ <Column name="Template" value="%OperationNotes%
%PI=""%
%OperationDeclaration%
%if opPure=="T"%
%endTemplate%

$classParams = %list="ClassParameter" @separator=", "%
$bodyLoc = %opTag:"bodyLocation"%
%if opTag:"inline" == "true" or $bodyLoc == "header" or $bodyLoc == "classDec" or $classParams!=""%
%OperationBody%
%endIf%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{3DBBFDE6-71E8-4ac9-B42C-9231E97C614C}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Operation Notes"/>
+ <Column name="Template" value="%if genOptGenComments != "T" or genOptCPPGenMethodNotesInHeader != "T"%
%endTemplate%

%PI=""%
$wrapLen = %genOptWrapComment%
$style = %genOptCPPCommentStyle%

%if $style == "XML.NET"%
%XML_COMMENT($wrapLen)%
%elseIf $style == "JavaDoc"%
%JAVADOC_COMMENT($wrapLen)%
%else%
%CSTYLE_COMMENT($wrapLen)%
%endIf%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{A94EB6AE-865B-43a3-9658-300711A61B88}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="File"/>
+ <Column name="Template" value="%synchNewClassNotesSpace="\n"%
%synchNewOperationNotesSpace="\n"%
%synchNewOperationBodySpace="\n"%
%synchNewAttributeNotesSpace="\n"%

/**
 * Copyright (C) 2012 - 2014, BMW AG
 *
 * This file is part of GENIVI Project AudioManager.
 *
 * Contributions are licensed to the GENIVI Alliance under one or more
 * Contribution License Agreements.
 *
 * \copyright
 * This Source Code Form is subject to the terms of the
 * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
 * this file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 *
 * \author Christian Linke, christian.linke@bmw.de BMW 2011 - 2014
 *
 * \file
 * For further information see http://projects.genivi.org/audio-manager
 *
 * THIS CODE HAS BEEN GENERATED BY ENTERPRISE ARCHITECT GENIVI MODEL. 
 * PLEASE CHANGE ONLY IN ENTERPRISE ARCHITECT AND GENERATE AGAIN.
 */

$COMMENT="WARNING: DO NOT MODIFY THIS TEMPLATE BELOW THIS POINT"
$guid = "EA_" + %TRIM(eaGUID,"{}")%
$guid = %REPLACE($guid,"-","_")%
$guid += "__INCLUDED_"
#if !defined($guid)
#define $guid\n
%ImportSection%
namespace am {\n
%list="Namespace" @separator="\n\n" @indent=""%
}
#endif // !defined($guid)\n"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{0BA5ABF5-6E2B-4884-831A-79061BA7F559}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Parameter"/>
+ <Column name="Template" value="%PI=" "%
%paramFixed=="T" ? "const" : ""%
%paramIsEnum=="T" ? "enum" : "" %
%if paramKind =="out" or paramKind=="inout" or paramTag:"byRef"=="true"%
%PI=""%
%endIf%
%RESOLVE_QUALIFIED_TYPE("::", "int")%
%if paramKind =="out"%
%PI=" "%
&
%endIf%
%PI=""%
%if paramKind =="inout"%
%PI=" "%
*
%endIf%
%if paramKind =="in" and paramTag:"byRef"=="true"%
%PI=" "%
&
%endIf%
%if paramType != "void"%
%paramName%
%endIf%
%PI=""%
%if paramDefault != "" and paramDefault != "<none>"%
 = %paramDefault%
%endIf%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{A8583536-013F-4e3d-8EFF-38D2B36A8C66}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Operation Declaration Impl"/>
+ <Column name="Template" value="$templateArgs=%list="ClassParameter" @separator=", "%
%if $templateArgs != ""%
$templateArgs="<" + $templateArgs + ">"
template$templateArgs
%endIf%
%PI=" "%
%opConst=="T" ? "const" : ""%
%RESOLVE_QUALIFIED_TYPE("::")%
%opTag:"callback"=="true" ? "CALLBACK" : ""%
%opImplMacros%
%PI=""%
%classQualName%::
%opName%(%list="ParameterImpl" @separator=", "%)
%if opIsQuery=="T" or opStereotype=="const"%
 const 
%endIf%
%opTag:"throws"=="" ? "" : " throw " value%
%opTag:"initializer" == ""? "" : "\n : " value%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{39F77F91-1C8B-48b0-9B39-1A30CCD4DEC4}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Namespace Declaration"/>
+ <Column name="Template" value="%if packagePath == "" or genOptCPPGenNamespace != "T"%
%endTemplate%

namespace %packageName%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{56DD0500-1B96-4f75-8440-6DA68E5E8340}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Attribute Declaration"/>
+ <Column name="Template" value="%if classStereotype == "enumeration"%
%PI=" = "%
%attName%
%attInitial ? value%
%endTemplate%

%if classStereotype == "typedef" and attStereotype == "define"%
%PI=" "%
#define %attName%
%attInitial ? value%
%endTemplate%

%PI=" "%
%attStatic=="T" ? "static" : ""%
%attConst=="T" ? "const" : ""%
%attVolatile=="T" ? "volatile" : ""%
%attTag:"mutable"=="true" ? "mutable" : ""%
%attStereotype=="struct" ? "struct" : ""%
$ptr = %attContainment=="By Reference" ? "*" : ""%
%RESOLVE_QUALIFIED_TYPE("::", "int")%$ptr
%PI=""%
%attName%
%if attCollection == "T" and attContainerType != ""%
%attContainerType%
%endIf%
%attTag:"bitfield" ? ":" value%
%if attStatic=="T" and attConst=="T" and attInitial != ""%
 = %attInitial%
%endIf%
;"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{B9BF98C9-C0B9-4f1e-986D-710ED8425EF9}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Namespace Body"/>
+ <Column name="Template" value="%if packagePath == "" or genOptCPPGenNamespace != "T"%
%PI="\n\n"%
%list="Namespace" @separator="\n\n" @indent=""%
%list="Class" @separator="\n\n" @indent=""%
%endTemplate%
{
%PI="\n\n"%
%list="Namespace" @separator="\n\n" @indent=""%
%list="Class" @separator="\n\n" @indent=""%
}"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{7E7AACEC-3B6A-42fa-B9BD-E2DC251949C2}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Namespace Body Impl"/>
+ <Column name="Template" value="$COMMENT="WARNING: THIS IS AN ADVANCED TEMPLATE"
$COMMENT="DO NOT MODIFY UNLESS YOU ARE AN"
$COMMENT="ADVANCED USER!"
%list="NamespaceImpl" @separator="\n\n\n"%
%list="ClassImpl" @separator="\n\n\n"%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{72D98AD2-8DC9-407f-BB74-E8DBFFD76791}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Namespace Impl"/>
+ <Column name="Template" value="$COMMENT="WARNING: THIS IS AN ADVANCED TEMPLATE"
$COMMENT="DO NOT MODIFY UNLESS YOU ARE AN"
$COMMENT="ADVANCED USER!"
"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{FB2A096A-5AEC-40c6-B787-A40D4294AE82}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Operation Declaration"/>
+ <Column name="Template" value="%PI=" "%
%opTag:"afx_msg"=="true" ? "afx_msg" : ""%
%opTag:"inline"=="true" ? "inline" : ""%
%opTag:"explicit"=="true" ? "explicit" : ""%
%opStereotype=="friend" ? "friend" : ""%
%opAbstract=="T" ? "virtual" : ""%
%opStatic=="T" ? "static" : ""%
%opConst=="T" ? "const" : ""%
%RESOLVE_QUALIFIED_TYPE("::")%
%opTag:"callback"=="true" ? "CALLBACK" : ""%
%opMacros%
%PI=""%
%opName%(%list="Parameter" @separator=", "%)
%if opIsQuery=="T" or opStereotype=="const"%
 const
%endIf%
%opTag:"volatile"=="true" ? " volatile" : ""%
%opTag:"throws"=="" ? "" : " throw " value%
%if opTag:"ObjectConst"=="true"%
 const
%endIf%
%if opPure=="T"%
 =0;
%endTemplate%

$classParams = %list="ClassParameter" @separator=", "%
%if opTag:"inline" != "true" and opTag:"bodyLocation" != "classDec" and $classParams==""%
;
%elseIf opTag:"initializer" != ""%
\n : %opTag:"initializer"%\n
%endIf%"/>
+ </DataRow>
+ <DataRow>
+ <Column name="TemplateID" value="{C56F7CAF-41B4-4c5e-ACA1-A9B0951F338F}"/>
+ <Column name="TemplateType" value="C++_Code_Template"/>
+ <Column name="TemplateName" value="Class Impl"/>
+ <Column name="Template" value="$COMMENT="WARNING: THIS IS AN ADVANCED TEMPLATE"
$COMMENT="DO NOT MODIFY UNLESS YOU ARE AN"
$COMMENT="ADVANCED USER!"
%fileImports%
%if classTag:"versionName"!=""%
#define %classTag:"versionName" ? value% %classTag:"version" ? "value%""/>
+ </DataRow>
+ </DataSet>
+</RefData>
diff --git a/Foo/LifecycleConsumer.xml b/Foo/LifecycleConsumer.xml new file mode 100644 index 0000000..ec1162b --- /dev/null +++ b/Foo/LifecycleConsumer.xml @@ -0,0 +1,23 @@ +<node> + <!-- + org.genivi.NodeStateManager.LifeCycleConsumer: + @short_description: Interface of a life cycle client. + + This interface contains functions, which need to be implemented by life cycle clients, to be able to receive life cycle requests. + --> + <interface name="org.genivi.NodeStateManager.LifeCycleConsumer"> + <!-- + LifecycleRequest: + @Request: The type of the life cycle request. Can be NSM_SHUTDOWNTYPE_RUNUP, NSM_SHUTDOWNTYPE_NORMAL or NSM_SHUTDOWNTYPE_FAST. + @RequestId: The Id of the client (current request). This Id needs to be passed to the NSM again via the interface "LifecycleRequestComplete", when the client has processed the "LifecycleRequest". + @ErrorCode: Client's return value, passed to the NodeStateManager. Based upon NsmErrorStatus_e. NsmErrorStatus_Ok: Request was successfully processed. NsmErrorStatus_ResponsePending: Processing of request started. LifecycleRequestComplete will be called to pass the status after completion. NsmErrorStatus_Error: An error occured, the request could not be processed. + + The method has to be implemented by every life cycle client and is called by the NodeStateManager, when the node is shutting down (fast or normal) or an ongoing shutdown is cancelled (run up). + --> + <method name="LifecycleRequest"> + <arg name="Request" direction="in" type="u"/> + <arg name="RequestId" direction="in" type="u"/> + <arg name="ErrorCode" direction="out" type="i"/> + </method> + </interface> +</node> diff --git a/Foo/genivi.audiomanager.service b/Foo/genivi.audiomanager.service new file mode 100644 index 0000000..d280914 --- /dev/null +++ b/Foo/genivi.audiomanager.service @@ -0,0 +1,34 @@ +# Copyright (C) 2012, BMW AG +# +# This file is part of GENIVI Project AudioManager. +# +# Contributions are licensed to the GENIVI Alliance under one or more +# Contribution License Agreements. +# +# copyright +# This Source Code Form is subject to the terms of the +# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with +# this file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# author Christian Linke, christian.linke@bmw.de BMW 2011,2012 +# +# For further information see http://www.genivi.org/. +# + +# This is a sample unit file that utilized the watchdog functionality of the AudioManager. +# If the time WatchdogSec equals 0, no watchdog function will be used. + + +[Unit] +Description=The GENIVI AudioManager + +[Service] +Type=notify +User=root +ExecStart=/usr/bin/AudioManager +Restart=always +WatchdogSec=2 +NotifyAccess=main + +[Install] +WantedBy=multi-user.target |