From 1523441e9eb94b008f1531b8a513458add88c609 Mon Sep 17 00:00:00 2001 From: Florent Tribouilloy Date: Tue, 24 Jan 2017 18:14:20 +0100 Subject: [PATCH] Displays: update display to be used by CLI (and API) Signed-off-by: Florent Tribouilloy --- Documentation/REST.md | 2 +- Source/CLI/CLI.cpp | 16 +- Source/CLI/CLI_Main.cpp | 2 +- Source/CLI/CommandLine_Parser.cpp | 4 + Source/CLI/Help.cpp | 10 +- Source/Common/Core.cpp | 36 +++++ Source/Common/Core.h | 2 + Source/Common/DaemonClient.cpp | 4 + Source/Common/MediaConchLib.cpp | 2 + Source/Common/MediaConchLib.h | 4 + Source/Common/REST_API.cpp | 4 +- .../ImplementationReportDisplayCSVXsl.h | 126 +++++++++++++++ .../ImplementationReportDisplaySimpleXsl.h | 152 ++++++++++++++++++ Source/Daemon/Daemon.cpp | 4 + 14 files changed, 358 insertions(+), 10 deletions(-) create mode 100644 Source/Common/generated/ImplementationReportDisplayCSVXsl.h create mode 100644 Source/Common/generated/ImplementationReportDisplaySimpleXsl.h diff --git a/Documentation/REST.md b/Documentation/REST.md index 4779d78c..3bdb3a63 100644 --- a/Documentation/REST.md +++ b/Documentation/REST.md @@ -354,7 +354,7 @@ Parameters: - policies_contents: Array of policies contents (Strings) - policies_ids: Array of policies ids (Integer) - display_content: String: display content -- display_name: String: display name (HTML, TEXT, XML, MAXML, JSTREE) +- display_name: String: display name (HTML, TEXT, XML, MAXML, JSTREE, SIMPLE, CSV) - options: Object of strings given to the XSL transformations: Verbosity should be defined here. Example: "options":{"verbosity": "5", "key":"value", ...} diff --git a/Source/CLI/CLI.cpp b/Source/CLI/CLI.cpp index cfa32968..06a58722 100644 --- a/Source/CLI/CLI.cpp +++ b/Source/CLI/CLI.cpp @@ -53,6 +53,12 @@ namespace MediaConch //-------------------------------------------------------------------------- int CLI::init(std::string& err) { + if (format == MediaConchLib::format_CSV && !policies.size()) + { + err = "CLI can use format CSV only with Policy"; + return CLI_RETURN_ERROR; + } + if (!no_needs_files_mode) { // If no filenames (and no options) @@ -72,7 +78,7 @@ namespace MediaConch { if (err == "MicroMediaTrace requires an XML output.") err += " Add -fx."; - return -1; + return CLI_RETURN_ERROR; } } @@ -80,10 +86,10 @@ namespace MediaConch MCL.set_plugins_configuration_file(plugins_configuration_file); if (MCL.init(err) < 0) - return -1; + return CLI_RETURN_ERROR; use_daemon = MCL.get_use_daemon(); - return 0; + return CLI_RETURN_NONE; } //-------------------------------------------------------------------------- @@ -364,6 +370,10 @@ namespace MediaConch return set_format(MediaConchLib::format_JsTree); if (f == "HTML" || f == "html") return set_format(MediaConchLib::format_Html); + if (f == "SIMPLE" || f == "simple") + return set_format(MediaConchLib::format_Simple); + if (f == "CSV" || f == "csv") + return set_format(MediaConchLib::format_CSV); return -1; } diff --git a/Source/CLI/CLI_Main.cpp b/Source/CLI/CLI_Main.cpp index 0108c22b..caf9277b 100644 --- a/Source/CLI/CLI_Main.cpp +++ b/Source/CLI/CLI_Main.cpp @@ -131,7 +131,7 @@ int main(int argc, char* argv_ansi[]) return 0; std::string err; - if (cli.init(err) < 0) + if (cli.init(err) == CLI_RETURN_ERROR) { STRINGOUT(ZenLib::Ztring().From_UTF8(err)); return 1; diff --git a/Source/CLI/CommandLine_Parser.cpp b/Source/CLI/CommandLine_Parser.cpp index 015b8555..ff0ac7ff 100644 --- a/Source/CLI/CommandLine_Parser.cpp +++ b/Source/CLI/CommandLine_Parser.cpp @@ -161,6 +161,10 @@ static void change_short_options_to_long(std::string& argument) argument = "--format=JSTREE"; if (argument=="-fh") argument = "--format=HTML"; + if (argument=="-fc") + argument = "--format=CSV"; + if (argument=="-fs") + argument = "--format=SIMPLE"; // Compression short options if (argument=="-cz") diff --git a/Source/CLI/Help.cpp b/Source/CLI/Help.cpp index 23a37cc8..e6211f17 100644 --- a/Source/CLI/Help.cpp +++ b/Source/CLI/Help.cpp @@ -70,12 +70,16 @@ int Help() TEXTOUT("--Format=text -ft"); TEXTOUT(" Output in Text format (default)"); TEXTOUT("--Format=xml -fx"); - TEXTOUT(" Output in MediaInfo/MediaConch/MediaTrace XML format"); + TEXTOUT(" Output MediaConch reports in XML format"); TEXTOUT(" (changed to -fa if there are more than 1 tool or more than 1 file)"); + TEXTOUT("--Format=html -fh"); + TEXTOUT(" Output MediaConch reports in HTML format"); + TEXTOUT("--Format=simple -fs"); + TEXTOUT(" Output MediaConch reports in a shorten form (>1 line only if there are errors)"); + TEXTOUT("--Format=csv -fc"); + TEXTOUT(" Output MediaConch reports in CSV format (only for policies)"); TEXTOUT("--Format=maxml -fa"); TEXTOUT(" Output in MediaArea XML format"); - TEXTOUT("--Format=html -fh"); - TEXTOUT(" Output MediaConch report in HTML format"); TEXTOUT("--Display=DisplayFileName, -d DisplayFileName"); TEXTOUT(" Apply the display transformation (XSL)"); TEXTOUT(""); diff --git a/Source/Common/Core.cpp b/Source/Common/Core.cpp index 87030b59..cc0a72ec 100644 --- a/Source/Common/Core.cpp +++ b/Source/Common/Core.cpp @@ -34,6 +34,8 @@ #include "Common/generated/ImplementationReportDisplayTextUnicodeXsl.h" #endif //defined(_WIN32) || defined(WIN32) #include "Common/generated/ImplementationReportDisplayHtmlXsl.h" +#include "Common/generated/ImplementationReportDisplaySimpleXsl.h" +#include "Common/generated/ImplementationReportDisplayCSVXsl.h" #include "Common/generated/ImplementationReportMatroskaSchema.h" #include "Common/generated/MediaTraceDisplayTextXsl.h" #include "Common/generated/MediaTraceDisplayHtmlXsl.h" @@ -619,6 +621,10 @@ int Core::checker_get_report(int user, const std::bitsetreport, result->report); else if (f == MediaConchLib::format_Html) transform_with_xslt_html_memory(result->report, result->report); + else if (f == MediaConchLib::format_Simple) + transform_with_xslt_simple_memory(result->report, result->report); + else if (f == MediaConchLib::format_CSV) + transform_with_xslt_csv_memory(result->report, result->report); } else { @@ -636,6 +642,8 @@ int Core::checker_get_report(int user, const std::bitset opts; + std::string memory(implementation_report_display_simple_xsl); + return transform_with_xslt_memory(report, memory, opts, result); +} + +//--------------------------------------------------------------------------- +int Core::transform_with_xslt_csv_memory(const std::string& report, std::string& result) +{ + std::map opts; + std::string memory(implementation_report_display_csv_xsl); + return transform_with_xslt_memory(report, memory, opts, result); +} + //*************************************************************************** // Policy validation //*************************************************************************** @@ -1702,6 +1726,10 @@ void Core::get_reports_output(int user, const std::vector& files, { // No transformation for XML } + else if (f == MediaConchLib::format_Simple) + transform_with_xslt_simple_memory(tmp, tmp); + else if (f == MediaConchLib::format_CSV) + transform_with_xslt_csv_memory(tmp, tmp); else transform_with_xslt_text_memory(tmp, tmp); @@ -1742,6 +1770,10 @@ void Core::get_reports_output(int user, const std::vector& files, { if (f == MediaConchLib::format_Html) transform_with_xslt_html_memory(transformed, transformed); + else if (f == MediaConchLib::format_Simple) + transform_with_xslt_simple_memory(transformed, transformed); + else if (f == MediaConchLib::format_CSV) + transform_with_xslt_csv_memory(transformed, transformed); else transform_with_xslt_text_memory(transformed, transformed); @@ -1778,6 +1810,10 @@ void Core::get_reports_output(int user, const std::vector& files, { if (f == MediaConchLib::format_Html) transform_with_xslt_html_memory(transformed, transformed); + if (f == MediaConchLib::format_Simple) + transform_with_xslt_simple_memory(transformed, transformed); + else if (f == MediaConchLib::format_CSV) + transform_with_xslt_csv_memory(transformed, transformed); else transform_with_xslt_text_memory(transformed, transformed); diff --git a/Source/Common/Core.h b/Source/Common/Core.h index 50990ac8..e68a26c5 100644 --- a/Source/Common/Core.h +++ b/Source/Common/Core.h @@ -253,6 +253,8 @@ class Core int transform_with_xslt_text_memory(const std::string& report, std::string& result); int transform_with_xslt_html_memory(const std::string& report, std::string& result); + int transform_with_xslt_simple_memory(const std::string& report, std::string& result); + int transform_with_xslt_csv_memory(const std::string& report, std::string& result); long file_is_registered_and_analyzed(int user, const std::string& file, bool& analyzed, const std::string& options, std::string& err); diff --git a/Source/Common/DaemonClient.cpp b/Source/Common/DaemonClient.cpp index cb1e9b25..8ec81ed4 100644 --- a/Source/Common/DaemonClient.cpp +++ b/Source/Common/DaemonClient.cpp @@ -600,6 +600,10 @@ int DaemonClient::checker_get_report(int user, const std::bitset::const_iterator it = options.begin(); diff --git a/Source/Common/generated/ImplementationReportDisplayCSVXsl.h b/Source/Common/generated/ImplementationReportDisplayCSVXsl.h new file mode 100644 index 00000000..c40bab0a --- /dev/null +++ b/Source/Common/generated/ImplementationReportDisplayCSVXsl.h @@ -0,0 +1,126 @@ +/* Copyright (c) MediaArea.net SARL. All Rights Reserved. + * + * Use of this source code is governed by a GPLv3+/MPLv2+ license that can + * be found in the License.html file in the root of the source tree. + */ + + +#ifndef IMPLEMENTATIONREPORTDISPLAYCSVXSL_H +#define IMPLEMENTATIONREPORTDISPLAYCSVXSL_H + + +const char implementation_report_display_csv_xsl[] = { +'\x3c','\x3f','\x78','\x6d','\x6c','\x20','\x76','\x65','\x72','\x73','\x69','\x6f','\x6e','\x3d','\x22','\x31','\x2e','\x30','\x22','\x3f','\x3e','\x0d' +,'\x0a' +,'\x3c','\x78','\x73','\x6c','\x3a','\x73','\x74','\x79','\x6c','\x65','\x73','\x68','\x65','\x65','\x74','\x20','\x78','\x6d','\x6c','\x6e','\x73','\x3a','\x78','\x73','\x6c','\x3d','\x22','\x68','\x74','\x74','\x70','\x3a','\x2f','\x2f','\x77','\x77','\x77','\x2e','\x77','\x33','\x2e','\x6f','\x72','\x67','\x2f','\x31','\x39','\x39','\x39','\x2f','\x58','\x53','\x4c','\x2f','\x54','\x72','\x61','\x6e','\x73','\x66','\x6f','\x72','\x6d','\x22','\x20','\x78','\x6d','\x6c','\x6e','\x73','\x3a','\x6d','\x63','\x3d','\x22','\x68','\x74','\x74','\x70','\x73','\x3a','\x2f','\x2f','\x6d','\x65','\x64','\x69','\x61','\x61','\x72','\x65','\x61','\x2e','\x6e','\x65','\x74','\x2f','\x6d','\x65','\x64','\x69','\x61','\x63','\x6f','\x6e','\x63','\x68','\x22','\x20','\x78','\x6d','\x6c','\x6e','\x73','\x3a','\x78','\x73','\x69','\x3d','\x22','\x68','\x74','\x74','\x70','\x3a','\x2f','\x2f','\x77','\x77','\x77','\x2e','\x77','\x33','\x2e','\x6f','\x72','\x67','\x2f','\x32','\x30','\x30','\x31','\x2f','\x58','\x4d','\x4c','\x53','\x63','\x68','\x65','\x6d','\x61','\x2d','\x69','\x6e','\x73','\x74','\x61','\x6e','\x63','\x65','\x22','\x20','\x76','\x65','\x72','\x73','\x69','\x6f','\x6e','\x3d','\x22','\x31','\x2e','\x30','\x22','\x20','\x65','\x78','\x74','\x65','\x6e','\x73','\x69','\x6f','\x6e','\x2d','\x65','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x2d','\x70','\x72','\x65','\x66','\x69','\x78','\x65','\x73','\x3d','\x22','\x78','\x73','\x69','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x6f','\x75','\x74','\x70','\x75','\x74','\x20','\x65','\x6e','\x63','\x6f','\x64','\x69','\x6e','\x67','\x3d','\x22','\x55','\x54','\x46','\x2d','\x38','\x22','\x20','\x6d','\x65','\x74','\x68','\x6f','\x64','\x3d','\x22','\x74','\x65','\x78','\x74','\x22','\x20','\x76','\x65','\x72','\x73','\x69','\x6f','\x6e','\x3d','\x22','\x31','\x2e','\x30','\x22','\x20','\x69','\x6e','\x64','\x65','\x6e','\x74','\x3d','\x22','\x79','\x65','\x73','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x20','\x6d','\x61','\x74','\x63','\x68','\x3d','\x22','\x2f','\x6d','\x63','\x3a','\x4d','\x65','\x64','\x69','\x61','\x43','\x6f','\x6e','\x63','\x68','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x66','\x69','\x6c','\x65','\x6e','\x61','\x6d','\x65','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x6d','\x65','\x64','\x69','\x61','\x5b','\x31','\x5d','\x2f','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x2f','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x7c','\x6d','\x63','\x3a','\x6d','\x65','\x64','\x69','\x61','\x5b','\x31','\x5d','\x2f','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x2f','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x7c','\x6d','\x63','\x3a','\x6d','\x65','\x64','\x69','\x61','\x5b','\x31','\x5d','\x2f','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x7c','\x6d','\x63','\x3a','\x6d','\x65','\x64','\x69','\x61','\x5b','\x31','\x5d','\x2f','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x2f','\x6d','\x63','\x3a','\x63','\x68','\x65','\x63','\x6b','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x2c','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x6c','\x6f','\x63','\x61','\x6c','\x2d','\x6e','\x61','\x6d','\x65','\x28','\x29','\x3d','\x27','\x63','\x68','\x65','\x63','\x6b','\x27','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x69','\x63','\x69','\x64','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x6f','\x74','\x68','\x65','\x72','\x77','\x69','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x22','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x6e','\x61','\x6d','\x65','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x22','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x6f','\x74','\x68','\x65','\x72','\x77','\x69','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x6d','\x65','\x64','\x69','\x61','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x26','\x23','\x78','\x61','\x3b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x63','\x61','\x6c','\x6c','\x2d','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x20','\x6e','\x61','\x6d','\x65','\x3d','\x22','\x65','\x73','\x63','\x61','\x70','\x65','\x63','\x6f','\x6d','\x6d','\x61','\x73','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x69','\x74','\x68','\x2d','\x70','\x61','\x72','\x61','\x6d','\x20','\x6e','\x61','\x6d','\x65','\x3d','\x22','\x74','\x65','\x78','\x74','\x22','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x72','\x65','\x66','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x63','\x61','\x6c','\x6c','\x2d','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x2f','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x7c','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x2f','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x7c','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x2c','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x2f','\x6d','\x63','\x3a','\x63','\x68','\x65','\x63','\x6b','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x2c','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x40','\x66','\x61','\x69','\x6c','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x20','\x3d','\x20','\x27','\x30','\x27','\x22','\x3e','\x70','\x61','\x73','\x73','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x40','\x66','\x61','\x69','\x6c','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x20','\x3e','\x20','\x27','\x30','\x27','\x22','\x3e','\x66','\x61','\x69','\x6c','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x20','\x6e','\x61','\x6d','\x65','\x3d','\x22','\x65','\x73','\x63','\x61','\x70','\x65','\x63','\x6f','\x6d','\x6d','\x61','\x73','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x70','\x61','\x72','\x61','\x6d','\x20','\x6e','\x61','\x6d','\x65','\x3d','\x22','\x74','\x65','\x78','\x74','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x24','\x74','\x65','\x78','\x74','\x20','\x3d','\x20','\x27','\x27','\x22','\x20','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x24','\x74','\x65','\x78','\x74','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x63','\x6f','\x6e','\x74','\x61','\x69','\x6e','\x73','\x28','\x24','\x74','\x65','\x78','\x74','\x2c','\x20','\x27','\x2c','\x27','\x29','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x73','\x75','\x62','\x73','\x74','\x72','\x69','\x6e','\x67','\x2d','\x62','\x65','\x66','\x6f','\x72','\x65','\x28','\x24','\x74','\x65','\x78','\x74','\x2c','\x27','\x2c','\x27','\x29','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x5c','\x2c','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x63','\x61','\x6c','\x6c','\x2d','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x20','\x6e','\x61','\x6d','\x65','\x3d','\x22','\x65','\x73','\x63','\x61','\x70','\x65','\x63','\x6f','\x6d','\x6d','\x61','\x73','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x69','\x74','\x68','\x2d','\x70','\x61','\x72','\x61','\x6d','\x20','\x6e','\x61','\x6d','\x65','\x3d','\x22','\x74','\x65','\x78','\x74','\x22','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x73','\x75','\x62','\x73','\x74','\x72','\x69','\x6e','\x67','\x2d','\x61','\x66','\x74','\x65','\x72','\x28','\x24','\x74','\x65','\x78','\x74','\x2c','\x27','\x2c','\x27','\x29','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x63','\x61','\x6c','\x6c','\x2d','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x6f','\x74','\x68','\x65','\x72','\x77','\x69','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x24','\x74','\x65','\x78','\x74','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x6f','\x74','\x68','\x65','\x72','\x77','\x69','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x3e','\x0d' +,'\x0a' +,'\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x73','\x74','\x79','\x6c','\x65','\x73','\x68','\x65','\x65','\x74','\x3e','\x0d' +,'\x0a' +, '\0'}; + + +#endif diff --git a/Source/Common/generated/ImplementationReportDisplaySimpleXsl.h b/Source/Common/generated/ImplementationReportDisplaySimpleXsl.h new file mode 100644 index 00000000..9b3dc4b8 --- /dev/null +++ b/Source/Common/generated/ImplementationReportDisplaySimpleXsl.h @@ -0,0 +1,152 @@ +/* Copyright (c) MediaArea.net SARL. All Rights Reserved. + * + * Use of this source code is governed by a GPLv3+/MPLv2+ license that can + * be found in the License.html file in the root of the source tree. + */ + + +#ifndef IMPLEMENTATIONREPORTDISPLAYSIMPLEXSL_H +#define IMPLEMENTATIONREPORTDISPLAYSIMPLEXSL_H + + +const char implementation_report_display_simple_xsl[] = { +'\x3c','\x3f','\x78','\x6d','\x6c','\x20','\x76','\x65','\x72','\x73','\x69','\x6f','\x6e','\x3d','\x22','\x31','\x2e','\x30','\x22','\x3f','\x3e','\x0d' +,'\x0a' +,'\x3c','\x78','\x73','\x6c','\x3a','\x73','\x74','\x79','\x6c','\x65','\x73','\x68','\x65','\x65','\x74','\x20','\x78','\x6d','\x6c','\x6e','\x73','\x3a','\x78','\x73','\x6c','\x3d','\x22','\x68','\x74','\x74','\x70','\x3a','\x2f','\x2f','\x77','\x77','\x77','\x2e','\x77','\x33','\x2e','\x6f','\x72','\x67','\x2f','\x31','\x39','\x39','\x39','\x2f','\x58','\x53','\x4c','\x2f','\x54','\x72','\x61','\x6e','\x73','\x66','\x6f','\x72','\x6d','\x22','\x20','\x78','\x6d','\x6c','\x6e','\x73','\x3a','\x6d','\x63','\x3d','\x22','\x68','\x74','\x74','\x70','\x73','\x3a','\x2f','\x2f','\x6d','\x65','\x64','\x69','\x61','\x61','\x72','\x65','\x61','\x2e','\x6e','\x65','\x74','\x2f','\x6d','\x65','\x64','\x69','\x61','\x63','\x6f','\x6e','\x63','\x68','\x22','\x20','\x78','\x6d','\x6c','\x6e','\x73','\x3a','\x78','\x73','\x69','\x3d','\x22','\x68','\x74','\x74','\x70','\x3a','\x2f','\x2f','\x77','\x77','\x77','\x2e','\x77','\x33','\x2e','\x6f','\x72','\x67','\x2f','\x32','\x30','\x30','\x31','\x2f','\x58','\x4d','\x4c','\x53','\x63','\x68','\x65','\x6d','\x61','\x2d','\x69','\x6e','\x73','\x74','\x61','\x6e','\x63','\x65','\x22','\x20','\x76','\x65','\x72','\x73','\x69','\x6f','\x6e','\x3d','\x22','\x31','\x2e','\x30','\x22','\x20','\x65','\x78','\x74','\x65','\x6e','\x73','\x69','\x6f','\x6e','\x2d','\x65','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x2d','\x70','\x72','\x65','\x66','\x69','\x78','\x65','\x73','\x3d','\x22','\x78','\x73','\x69','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x6f','\x75','\x74','\x70','\x75','\x74','\x20','\x65','\x6e','\x63','\x6f','\x64','\x69','\x6e','\x67','\x3d','\x22','\x55','\x54','\x46','\x2d','\x38','\x22','\x20','\x6d','\x65','\x74','\x68','\x6f','\x64','\x3d','\x22','\x74','\x65','\x78','\x74','\x22','\x20','\x76','\x65','\x72','\x73','\x69','\x6f','\x6e','\x3d','\x22','\x31','\x2e','\x30','\x22','\x20','\x69','\x6e','\x64','\x65','\x6e','\x74','\x3d','\x22','\x79','\x65','\x73','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x20','\x6d','\x61','\x74','\x63','\x68','\x3d','\x22','\x2f','\x6d','\x63','\x3a','\x4d','\x65','\x64','\x69','\x61','\x43','\x6f','\x6e','\x63','\x68','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x6d','\x65','\x64','\x69','\x61','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x69','\x66','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x70','\x6f','\x73','\x69','\x74','\x69','\x6f','\x6e','\x28','\x29','\x20','\x21','\x3d','\x20','\x27','\x31','\x27','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x26','\x23','\x78','\x61','\x3b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x69','\x66','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x62','\x6f','\x6f','\x6c','\x65','\x61','\x6e','\x28','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x2f','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x7c','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x2f','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x29','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x2f','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x7c','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x2f','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x62','\x6f','\x6f','\x6c','\x65','\x61','\x6e','\x28','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x2f','\x40','\x66','\x61','\x69','\x6c','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x29','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x73','\x75','\x6d','\x28','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x2f','\x40','\x70','\x61','\x73','\x73','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x29','\x20','\x3d','\x20','\x27','\x30','\x27','\x20','\x61','\x6e','\x64','\x20','\x73','\x75','\x6d','\x28','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x2f','\x40','\x66','\x61','\x69','\x6c','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x29','\x20','\x3d','\x20','\x27','\x30','\x27','\x22','\x3e','\x4e','\x2f','\x41','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x73','\x75','\x6d','\x28','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x2f','\x40','\x66','\x61','\x69','\x6c','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x29','\x20','\x3d','\x20','\x27','\x30','\x27','\x22','\x3e','\x70','\x61','\x73','\x73','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x73','\x75','\x6d','\x28','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x2f','\x40','\x66','\x61','\x69','\x6c','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x29','\x20','\x3e','\x20','\x27','\x30','\x27','\x22','\x3e','\x66','\x61','\x69','\x6c','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x77','\x68','\x65','\x6e','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x63','\x68','\x6f','\x6f','\x73','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x21','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x72','\x65','\x66','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x61','\x70','\x70','\x6c','\x79','\x2d','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x73','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x61','\x70','\x70','\x6c','\x79','\x2d','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x73','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x7c','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x20','\x6d','\x61','\x74','\x63','\x68','\x3d','\x22','\x6d','\x63','\x3a','\x69','\x6d','\x70','\x6c','\x65','\x6d','\x65','\x6e','\x74','\x61','\x74','\x69','\x6f','\x6e','\x43','\x68','\x65','\x63','\x6b','\x73','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x63','\x68','\x65','\x63','\x6b','\x5b','\x40','\x66','\x61','\x69','\x6c','\x5f','\x63','\x6f','\x75','\x6e','\x74','\x20','\x3e','\x20','\x27','\x30','\x27','\x5d','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x26','\x23','\x78','\x61','\x3b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x20','\x2d','\x2d','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x69','\x63','\x69','\x64','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x74','\x65','\x73','\x74','\x5b','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x3d','\x27','\x66','\x61','\x69','\x6c','\x27','\x5d','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x26','\x23','\x78','\x61','\x3b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x20','\x2d','\x2d','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x73','\x75','\x62','\x73','\x74','\x72','\x69','\x6e','\x67','\x28','\x27','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x27','\x2c','\x31','\x2c','\x63','\x6f','\x75','\x6e','\x74','\x28','\x61','\x6e','\x63','\x65','\x73','\x74','\x6f','\x72','\x3a','\x3a','\x2a','\x29','\x29','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x5b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x3a','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x72','\x65','\x61','\x73','\x6f','\x6e','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x5d','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x76','\x61','\x6c','\x75','\x65','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x26','\x23','\x78','\x61','\x3b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x20','\x2d','\x2d','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x73','\x75','\x62','\x73','\x74','\x72','\x69','\x6e','\x67','\x28','\x27','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x27','\x2c','\x31','\x2c','\x63','\x6f','\x75','\x6e','\x74','\x28','\x61','\x6e','\x63','\x65','\x73','\x74','\x6f','\x72','\x3a','\x3a','\x2a','\x29','\x29','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x5b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x63','\x6f','\x6e','\x74','\x65','\x78','\x74','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x20','\x61','\x74','\x20','\x62','\x79','\x74','\x65','\x73','\x20','\x6f','\x66','\x66','\x73','\x65','\x74','\x20','\x6f','\x66','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x6f','\x66','\x66','\x73','\x65','\x74','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x5d','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x66','\x6f','\x72','\x2d','\x65','\x61','\x63','\x68','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x20','\x6d','\x61','\x74','\x63','\x68','\x3d','\x22','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x7c','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x69','\x66','\x20','\x74','\x65','\x73','\x74','\x3d','\x22','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x21','\x3d','\x27','\x70','\x61','\x73','\x73','\x27','\x22','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x26','\x23','\x78','\x61','\x3b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x20','\x20','\x2d','\x2d','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x73','\x75','\x62','\x73','\x74','\x72','\x69','\x6e','\x67','\x28','\x27','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x20','\x27','\x2c','\x31','\x2c','\x63','\x6f','\x75','\x6e','\x74','\x28','\x61','\x6e','\x63','\x65','\x73','\x74','\x6f','\x72','\x3a','\x3a','\x2a','\x29','\x29','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x5b','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x3a','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x76','\x61','\x6c','\x75','\x65','\x2d','\x6f','\x66','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x40','\x6e','\x61','\x6d','\x65','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x5d','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x78','\x74','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x20','\x20','\x3c','\x78','\x73','\x6c','\x3a','\x61','\x70','\x70','\x6c','\x79','\x2d','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x73','\x20','\x73','\x65','\x6c','\x65','\x63','\x74','\x3d','\x22','\x6d','\x63','\x3a','\x72','\x75','\x6c','\x65','\x5b','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x21','\x3d','\x27','\x70','\x61','\x73','\x73','\x27','\x5d','\x7c','\x6d','\x63','\x3a','\x70','\x6f','\x6c','\x69','\x63','\x79','\x5b','\x40','\x6f','\x75','\x74','\x63','\x6f','\x6d','\x65','\x21','\x3d','\x27','\x70','\x61','\x73','\x73','\x27','\x5d','\x22','\x2f','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x69','\x66','\x3e','\x0d' +,'\x0a' +,'\x20','\x20','\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x74','\x65','\x6d','\x70','\x6c','\x61','\x74','\x65','\x3e','\x0d' +,'\x0a' +,'\x3c','\x2f','\x78','\x73','\x6c','\x3a','\x73','\x74','\x79','\x6c','\x65','\x73','\x68','\x65','\x65','\x74','\x3e','\x0d' +,'\x0a' +, '\0'}; + + +#endif diff --git a/Source/Daemon/Daemon.cpp b/Source/Daemon/Daemon.cpp index f335ebca..cf2a0420 100644 --- a/Source/Daemon/Daemon.cpp +++ b/Source/Daemon/Daemon.cpp @@ -877,6 +877,10 @@ namespace MediaConch format = MediaConchLib::format_Html; else if (req->display_name == MediaConchLib::display_jstree_name) format = MediaConchLib::format_JsTree; + else if (req->display_name == MediaConchLib::display_simple_name) + format = MediaConchLib::format_Simple; + else if (req->display_name == MediaConchLib::display_csv_name) + format = MediaConchLib::format_CSV; const std::string* display_name = req->display_name.length() ? &req->display_name : NULL; const std::string* display_content = req->display_content.length() ? &req->display_content : NULL;