Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / protocols / ace / INet / HTTP_StreamPolicyBase.cpp
blobd9456e2af952d2c80b741798f94926f63b37001b
1 #ifndef ACE_HTTP_STREAM_POLICY_BASE_CPP
2 #define ACE_HTTP_STREAM_POLICY_BASE_CPP
4 #include "ace/INet/HTTP_StreamPolicyBase.h"
6 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
8 namespace ACE
10 namespace HTTP
12 template <class STREAM_BUFFER>
13 StreamPolicyBase<STREAM_BUFFER>::StreamPolicyBase ()
14 : streambuf_ (0)
17 template <class STREAM_BUFFER>
18 StreamPolicyBase<STREAM_BUFFER>::~StreamPolicyBase ()
21 template <class STREAM_BUFFER>
22 int StreamPolicyBase<STREAM_BUFFER>::read_from_stream_i (
23 char_type * buf,
24 std::streamsize length)
26 return this->streambuf_->read_from_stream_i (buf, length);
29 template <class STREAM_BUFFER>
30 int StreamPolicyBase<STREAM_BUFFER>::write_to_stream_i (
31 const char_type * buf,
32 std::streamsize length)
34 return this->streambuf_->write_to_stream_i (buf, length);
37 template <class STREAM_BUFFER>
38 void StreamPolicyBase<STREAM_BUFFER>::set_stream_buffer (STREAM_BUFFER* streambuf)
40 this->streambuf_ = streambuf;
46 ACE_END_VERSIONED_NAMESPACE_DECL
48 #endif /* ACE_HTTP_STREAM_POLICY_BASE_CPP */