00001 #ifndef XCT_XSOAP3_COMMUNICATION_CHANNEL_H
00002 #define XCT_XSOAP3_COMMUNICATION_CHANNEL_H
00003
00004
00005 #include <sstream>
00006 #include <string>
00007 #include <iostream>
00008
00009
00010 #include "CommunicationException.hpp"
00011
00012
00013 namespace xsoap {
00014
00015 class CommunicationChannel
00016 {
00017 public:
00018 CommunicationChannel();
00019 CommunicationChannel(std::stringstream *pipe);
00020 virtual ~CommunicationChannel(void);
00021
00022 virtual CommunicationChannel& operator<<(const std::string&) = 0;
00023
00024 virtual void send(const std::string& str);
00025
00026 virtual void receive(std::string&);
00027
00028 virtual void close();
00029
00030 virtual void setRequestProperty(std::string, std::string) {}
00031
00032 private:
00033 std::stringstream *m_pipe;
00034 };
00035
00036 }
00037
00038
00039 #endif
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050