00001 #ifndef __vtkFetchMIParserHID_h 00002 #define __vtkFetchMIParserHID_h 00003 00004 // FetchMI includes 00005 #include "vtkFetchMIParser.h" 00006 00007 // VTK includes 00008 #include "vtkObject.h" 00009 #include "vtkXMLDataParser.h" 00010 #include "vtkXMLDataElement.h" 00011 00012 // STL includes 00013 #include <string> 00014 00015 #include "vtkSlicerFetchMIModuleLogicExport.h" 00016 00017 class VTK_SLICER_FETCHMI_MODULE_LOGIC_EXPORT vtkFetchMIParserHID : public vtkFetchMIParser 00018 { 00019 00020 public: 00021 static vtkFetchMIParserHID* New(); 00022 vtkTypeRevisionMacro(vtkFetchMIParserHID, vtkFetchMIParser); 00023 void PrintSelf(ostream& os, vtkIndent indent); 00024 00025 // Description: 00026 // Method returns the class's vtkXMLDataParser 00027 vtkGetObjectMacro ( Parser, vtkXMLDataParser ); 00028 00029 // Description: 00030 // Function for parsing the response to query for server-supported metadata 00031 virtual int ParseMetadataQueryResponse(const char *vtkNotUsed(filename)) { return 0; }; 00032 00033 // Description: 00034 // Function for parsing the response to query for all values for any metadata attribute. 00035 virtual int ParseValuesforAttributeQueryResponse(const char *vtkNotUsed(filename), 00036 const char *vtkNotUsed(att)) 00037 { return 0; }; 00038 00039 // Description: 00040 // Function for parsing the response to query for resources on the server. 00041 virtual int ParseResourceQueryResponse(const char *vtkNotUsed(filename)) { return 0; }; 00042 00043 // Description: 00044 // Function for parsing the response to requests that metadata be deleted on server 00045 virtual int ParseMetatdataDeleteResponse(const char *vtkNotUsed(filename)) { return 0; }; 00046 00047 // Description: 00048 // Function for parsing the response to requests that a resource be deleted on server 00049 virtual int ParseResourceDeleteResponse(const char *vtkNotUsed(filename)) { return 0; }; 00050 00051 // Description: 00052 // Function for parsing the response to posting of new metadata to server. 00053 virtual int ParseMetadataPostResponse( const char *vtkNotUsed(filename)) { return 0; }; 00054 00055 // Description: 00056 // Function for parsing the response to posting of reource to server. 00057 virtual int ParseResourcePostResponse(const char *vtkNotUsed(filename)) { return 0; }; 00058 00059 // Description: 00060 // Virtual functions for parsing download requests. 00061 virtual int ParseResourceDownloadResponse(const char *vtkNotUsed(filename)) { return 0; }; 00062 00063 // Description: 00064 // Virtual function for looking for errors in response to posts or queries on the server. 00065 virtual int ParseForErrors (const char *vtkNotUsed(filename)) { return 0; }; 00066 00067 // Description: 00068 // Gets an XMLEntry and depending on the ResponseType the 00069 // parser is expecting, does the appropriate thing to process it. 00070 virtual void GetXMLEntry ( vtkXMLDataElement *element ); 00071 00072 protected: 00073 vtkFetchMIParserHID(); 00074 virtual ~vtkFetchMIParserHID(); 00075 00076 vtkXMLDataParser *Parser; 00077 //BTX 00078 std::string ErrorString; 00079 //ETX 00080 00081 vtkFetchMIParserHID(const vtkFetchMIParserHID&); // Not implemented 00082 void operator=(const vtkFetchMIParserHID&); // Not Implemented 00083 }; 00084 00085 #endif 00086
1.6.1