00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef MS_DISTILLER_SEARCH_STATUS_LIST_HPP
00018 #define MS_DISTILLER_SEARCH_STATUS_LIST_HPP
00019
00020
00021
00022 #include <string>
00023
00024 namespace msparser_internal
00025 {
00026 class ms_XMLHelper;
00027 class ms_XMLElement;
00028 }
00029
00030 namespace matrix_science
00031 {
00032 class ms_input_stream;
00033
00034
00040 class ms_distiller_search_status;
00041
00043
00046 class MS_MASCOTRESFILE_API ms_distiller_search_status_list :
00047 public matrix_science::ms_errors
00048 {
00049 public:
00050 ms_distiller_search_status_list();
00051 ms_distiller_search_status_list(const ms_distiller_search_status_list & src);
00052 #ifndef SWIG
00053 ms_distiller_search_status_list& operator=(const ms_distiller_search_status_list & right);
00054 #endif
00055 void copyFrom(const ms_distiller_search_status_list * right);
00056
00058 static std::string getSearchStatusListStreamName();
00059
00061 int getNumSearches() const;
00063 const ms_distiller_search_status & getSearch(int index) const;
00064
00066 bool loadXml(const char * xmlSchemaPath, const std::string & xmlText);
00068 bool loadXmlFile(const char * xmlSchemaPath, const std::string & xmlFilename);
00070 bool loadXmlStream(const char * xmlSchemaPath, matrix_science::ms_input_string_stream * xmlStream);
00071
00072 private:
00073 bool extractXml(msparser_internal::ms_XMLHelper & helper);
00074
00075 std::vector<ms_distiller_search_status> searches_;
00076 };
00077
00079
00080
00081 }
00082
00083 #endif // MS_DISTILLER_SEARCH_STATUS_LIST_HPP
00084
00085