VPTissue Reference Manual
FileConverterFormats.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2016 Universiteit Antwerpen
3  *
4  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
5  * the European Commission - subsequent versions of the EUPL (the "Licence");
6  * You may not use this work except in compliance with the Licence.
7  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the Licence is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the Licence for the specific language governing
13  * permissions and limitations under the Licence.
14  */
20 #include "FileConverterFormats.h"
21 
22 using namespace std;
23 using namespace SimPT_Sim;
25 
26 namespace SimPT_Shell {
27 
28 BitmapFormat FileConverterFormats::g_bmp_format(BitmapFormat::FileFormat::Bmp);
29 CsvFormat FileConverterFormats::g_csv_format;
30 CsvGzFormat FileConverterFormats::g_csv_gz_format;
31 Hdf5Format FileConverterFormats::g_hdf5_format;
32 BitmapFormat FileConverterFormats::g_jpeg_format(BitmapFormat::FileFormat::Jpeg);
33 PlyFormat FileConverterFormats::g_ply_format;
34 VectorFormat FileConverterFormats::g_pdf_format(VectorFormat::FileFormat::Pdf);
35 BitmapFormat FileConverterFormats::g_png_format(BitmapFormat::FileFormat::Png);
36 XmlFormat FileConverterFormats::g_xml_format;
37 XmlGzFormat FileConverterFormats::g_xml_gz_format;
38 
39 vector<IConverterFormat*> FileConverterFormats::GetFormats() {
40  return {&g_hdf5_format, &g_xml_format, &g_xml_gz_format,
41  &g_bmp_format, &g_csv_format, &g_csv_gz_format,
42  &g_jpeg_format, &g_ply_format, &g_pdf_format, &g_png_format};
43 }
44 vector<IConverterFormat*> FileConverterFormats::GetConverterFormats() {
45  return {&g_hdf5_format, &g_xml_format, &g_xml_gz_format};
46 }
47 
48 vector<IConverterFormat*> FileConverterFormats::GetExportFormats() {
49  return {&g_bmp_format, &g_csv_format, &g_csv_gz_format,
50  &g_jpeg_format, &g_ply_format, &g_pdf_format, &g_png_format};
51 }
52 
53 } // namespace
STL namespace.
Namespace for SimPT shell package.
Definition: Client.cpp:50
Wrapper around workspace to have read and write access to merged (workspace + project) preferences...
Namespace for the core simulator.
Interface of file converter formats.