Main Page | Class Hierarchy | Class List | File List | Class Members

SerializationContext.hpp

00001 #ifndef XSOAP_SERIALIZATION_CONTEXT_H 00002 #define XSOAP_SERIALIZATION_CONTEXT_H 00003 00004 #include <map> 00005 #include <string> 00006 #include <stdexcept> 00007 #include <assert.h> 00008 #include <utility> 00009 00010 namespace xsoap{ 00011 00013 typedef std::map<std::string, std::string> STR2STR; 00014 00015 class SerializationContext 00016 { 00017 public: 00018 SerializationContext(void); 00019 ~SerializationContext(void); 00020 00021 bool containsPrefix(std::string ns); 00022 std::string declareNamespace(std::string ns); 00023 void declarePrefix(std::string prefix, std::string ns); 00024 std::string getNamespaceByPrefix(std::string prefix) throw (std::out_of_range); 00025 std::string getPrefixByNamespace(std::string ns) throw (std::out_of_range); 00026 std::pair<std::string, bool> getPrefix(std::string ns); 00027 00028 00029 private: 00030 int inc; 00031 STR2STR prefix2ns; 00032 STR2STR ns2prefix; 00033 }; 00034 00035 } 00036 #endif 00037 /* Local Variables: */ 00038 /* c-basic-offset: 4 */ 00039 /* indent-tabs-mode: nil */ 00040 /* End: */ 00041 /* vim: set filetype=cpp tabstop=8 shiftwidth=4 softtabstop=4 expandtab: */

Generated on Sat Jun 5 00:52:18 2004 for XSoap-C++ by doxygen 1.3.7