Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00056 #ifndef __OUTPUTFILESDESCRIPTOR_HPP__
00057 #define __OUTPUTFILESDESCRIPTOR_HPP__
00058
00059 #include <vector>
00060 #include <openfluid/dllexport.hpp>
00061 #include <openfluid/base/OutputSetDescriptor.hpp>
00062
00063
00064 namespace openfluid { namespace base {
00065
00066
00067 class DLLEXPORT OutputFilesDescriptor
00068 {
00069
00070 public:
00071 enum HeaderType { None, Info, ColnamesAsData, Full };
00072
00073
00074 private:
00075
00076 std::vector<OutputSetDescriptor> m_Sets;
00077 HeaderType m_HeaderType;
00078 std::string m_ColSeparator;
00079 std::string m_DateFormat;
00080 std::string m_CommentChar;
00081 std::string m_Name;
00082
00083
00084 public:
00085
00086 OutputFilesDescriptor()
00087 : m_HeaderType(Info), m_ColSeparator("\t"), m_DateFormat("%Y%m%dT%H%M%S"), m_CommentChar("%"), m_Name("") { };
00088
00089 ~OutputFilesDescriptor() { };
00090
00091 inline std::vector<OutputSetDescriptor>& getSets() { return m_Sets; };
00092
00093 inline const std::vector<OutputSetDescriptor>& getSets() const { return m_Sets; };
00094
00095 inline std::string getColSeparator() const { return m_ColSeparator; };
00096
00097 inline void setColSeparator(const std::string& ColSep) { m_ColSeparator = ColSep; };
00098
00099 inline std::string getDateFormat() const { return m_DateFormat; };
00100
00101 inline void setDateFormat(const std::string& DateFormat) { m_DateFormat = DateFormat; };
00102
00103 inline std::string getCommentChar() const { return m_CommentChar; };
00104
00105 inline void setCommentChar(const std::string& CommentChar) { m_CommentChar = CommentChar; };
00106
00107 inline void setName(const std::string& Name) { m_Name = Name; };
00108
00109 inline std::string getName() const { return m_Name; };
00110
00111 inline void setHeaderType(const HeaderType& HType) { m_HeaderType = HType; };
00112
00113 inline HeaderType getHeaderType() const { return m_HeaderType; };
00114
00115 };
00116
00117
00118 } }
00119
00120
00121 #endif