DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2004-2007 Jonathan Turkanis // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) // See http://www.boost.org/libs/iostreams for documentation. #ifndef BOOST_IOSTREAMS_FILTER_STREAM_HPP_INCLUDED #define BOOST_IOSTREAMS_FILTER_STREAM_HPP_INCLUDED #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include
// allocator. #include
#include
#include
// standard streams. #include
#include
#include
// pubsync. #include
#include
#include
#include
#include
// Must come last. #include
// MSVC. namespace boost { namespace iostreams { //--------------Definition of filtered_istream--------------------------------// namespace detail { template
struct filtering_stream_traits { typedef typename iostreams::select< // Disambiguation for Tru64 mpl::and_< is_convertible
, is_convertible
>, BOOST_IOSTREAMS_BASIC_IOSTREAM(Ch, Tr), is_convertible
, BOOST_IOSTREAMS_BASIC_ISTREAM(Ch, Tr), else_, BOOST_IOSTREAMS_BASIC_OSTREAM(Ch, Tr) >::type stream_type; typedef typename iostreams::select< // Dismbiguation required for Tru64. mpl::and_< is_convertible
, is_convertible
>, iostream_tag, is_convertible
, istream_tag, else_, ostream_tag >::type stream_tag; }; template
class filtering_stream_base : public access_control< boost::iostreams::detail::chain_client
, Access >, public filtering_stream_traits< typename Chain::mode, typename Chain::char_type, typename Chain::traits_type >::stream_type { public: typedef Chain chain_type; typedef access_control< boost::iostreams::detail::chain_client
, Access > client_type; protected: typedef typename filtering_stream_traits< typename Chain::mode, typename Chain::char_type, typename Chain::traits_type >::stream_type stream_type; filtering_stream_base() : stream_type(0) { this->set_chain(&chain_); } private: void notify() { this->rdbuf(chain_.empty() ? 0 : &chain_.front()); } Chain chain_; }; } // End namespace detail. // // Macro: BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(name_, chain_type_, default_char_) // Description: Defines a template derived from std::basic_streambuf which uses // a chain to perform i/o. The template has the following parameters: // Mode - the i/o mode. // Ch - The character type. // Tr - The character traits type. // Alloc - The allocator type. // Access - Indicates accessibility of the chain interface; must be either // public_ or protected_; defaults to public_. // Macro parameters: // name_ - The name of the template to be defined. // chain_type_ - The name of the chain template. // default_char_ - The default value for the char template parameter. // #define BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(name_, chain_type_, default_char_) \ template< typename Mode, \ typename Ch = default_char_, \ typename Tr = BOOST_IOSTREAMS_CHAR_TRAITS(Ch), \ typename Alloc = std::allocator
, \ typename Access = public_ > \ class name_ \ : public boost::iostreams::detail::filtering_stream_base< \ chain_type_
, Access \ > \ { \ public: \ typedef Ch char_type; \ struct category \ : Mode, \ closable_tag, \ detail::filtering_stream_traits
::stream_tag \ { }; \ BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(Tr) \ typedef Mode mode; \ typedef chain_type_
chain_type; \ name_() { } \ BOOST_IOSTREAMS_DEFINE_PUSH_CONSTRUCTOR(name_, mode, Ch, push_impl) \ ~name_() { \ if (this->is_complete()) \ this->rdbuf()->BOOST_IOSTREAMS_PUBSYNC(); \ } \ private: \ typedef access_control< \ boost::iostreams::detail::chain_client< \ chain_type_
\ >, \ Access \ > client_type; \ template
\ void push_impl(const T& t BOOST_IOSTREAMS_PUSH_PARAMS()) \ { client_type::push(t BOOST_IOSTREAMS_PUSH_ARGS()); } \ }; \ /**/ BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(filtering_stream, boost::iostreams::chain, char) BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(wfiltering_stream, boost::iostreams::chain, wchar_t) typedef filtering_stream
filtering_istream; typedef filtering_stream
filtering_ostream; typedef wfiltering_stream
filtering_wistream; typedef wfiltering_stream
filtering_wostream; //----------------------------------------------------------------------------// } } // End namespace iostreams, boost #include
// MSVC #endif // #ifndef BOOST_IOSTREAMS_FILTER_STREAM_HPP_INCLUDED
filtering_stream.hpp
Page URL
File URL
Prev
12/37
Next
Download
( 6 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.