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
#ifndef BOOST_ARCHIVE_BASIC_XML_GRAMMAR_HPP #define BOOST_ARCHIVE_BASIC_XML_GRAMMAR_HPP // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_xml_grammar.hpp // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to 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 for updates, documentation, and revision history. // this module is derived from simplexml.cpp - an example shipped as part of // the spirit parser. This example contains the following notice: /*============================================================================= simplexml.cpp Spirit V1.3 URL: http://spirit.sourceforge.net/ Copyright (c) 2001, Daniel C. Nuffer This software is provided 'as-is', without any express or implied warranty. In no event will the copyright holder be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. =============================================================================*/ #include
#include
#include
// supress noise #if BOOST_WORKAROUND(BOOST_MSVC, <= 1200) # pragma warning (disable : 4786) // too long name, harmless warning #endif //#define BOOST_SPIRIT_DEBUG //#include
#include
#include
// the following hack is to evade a bogus error generated by using the // word "arg" when bind.hpp has been included #if BOOST_WORKAROUND(BOOST_MSVC, <= 1200) #define arg xarg #endif #include
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1200) #undef arg #endif #include
#include
#include
namespace boost { namespace archive { /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // XML grammar parsing template
class basic_xml_grammar : public boost::spirit::grammar
> { public: // The following is not necessary according to DR45, but at least // one compiler (Compaq C++ 6.5 in strict_ansi mode) chokes otherwise. struct return_values; friend struct return_values; private: typedef BOOST_DEDUCED_TYPENAME std::basic_istream
IStream; typedef BOOST_DEDUCED_TYPENAME std::basic_string
StringType; typedef BOOST_DEDUCED_TYPENAME boost::spirit::chset
chset_t; typedef BOOST_DEDUCED_TYPENAME boost::spirit::chlit
chlit_t; typedef BOOST_DEDUCED_TYPENAME boost::spirit::scanner< BOOST_DEDUCED_TYPENAME std::basic_string
::iterator > scanner_t; typedef BOOST_DEDUCED_TYPENAME boost::spirit::rule
rule_t; // Start grammar definition rule_t Reference, Eq, STag, ETag, LetterOrUnderscoreOrColon, AttValue, CharRef1, CharRef2, CharRef, AmpRef, LTRef, GTRef, AposRef, QuoteRef, CharData, CharDataChars, content, AmpName, LTName, GTName, ClassNameChar, ClassName, Name, XMLDecl, XMLDeclChars, DocTypeDecl, DocTypeDeclChars, ClassIDAttribute, ObjectIDAttribute, ClassNameAttribute, TrackingAttribute, VersionAttribute, UnusedAttribute, Attribute, SignatureAttribute, SerializationWrapper, NameHead, NameTail, AttributeList, S; // XML Character classes chset_t BaseChar, Ideographic, Char, Letter, Digit, CombiningChar, Extender, Sch, NameChar; void init_chset(); bool my_parse( IStream & is, const rule_t &rule_, const CharType delimiter = L'>' ); public: struct return_values { StringType object_name; StringType contents; class_id_type class_id; object_id_type object_id; version_type version; tracking_type tracking_level; StringType class_name; return_values() : version(0), tracking_level(false) {} } rv; bool parse_start_tag(IStream & is) ; bool parse_end_tag(IStream & is); bool parse_string(IStream & is, StringType & s); void init(IStream & is); void windup(IStream & is); basic_xml_grammar(); }; } // namespace archive } // namespace boost #endif // BOOST_ARCHIVE_BASIC_XML_GRAMMAR_HPP
basic_xml_grammar.hpp
Page URL
File URL
Prev
11/21
Next
Download
( 5 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.