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 Gennadiy Rozental 2005-2007. // Use, modification, and distribution are 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/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision: 43798 $ // // Description : defines parser - public interface for CLA parsing and accessing // *************************************************************************** #ifndef BOOST_RT_CLA_PARSER_HPP_062604GER #define BOOST_RT_CLA_PARSER_HPP_062604GER // Boost.Runtime.Parameter #include
#include
#include
#include
#include
#include
// Boost #include
// STL #include
namespace boost { namespace BOOST_RT_PARAM_NAMESPACE { namespace cla { // ************************************************************************** // // ************** runtime::cla::parser ************** // // ************************************************************************** // namespace cla_detail { template
class global_mod_parser { public: global_mod_parser( parser& p, Modifier const& m ) : m_parser( p ) , m_modifiers( m ) {} template
global_mod_parser const& operator<<( shared_ptr
param ) const { param->accept_modifier( m_modifiers ); m_parser << param; return *this; } private: // Data members; parser& m_parser; Modifier const& m_modifiers; }; } // ************************************************************************** // // ************** runtime::cla::parser ************** // // ************************************************************************** // class parser { public: typedef std::list
::const_iterator param_iterator; // Constructor explicit parser( cstring program_name = cstring() ); // parameter list construction interface parser& operator<<( parameter_ptr param ); // parser and global parameters modifiers template
cla_detail::global_mod_parser
operator-( Modifier const& m ) { nfp::optionally_assign( m_traverser.p_separator.value, m, input_separator ); nfp::optionally_assign( m_traverser.p_ignore_mismatch.value, m, ignore_mismatch_m ); return cla_detail::global_mod_parser
( *this, m ); } // input processing method void parse( int& argc, char_type** argv ); // parameters access param_iterator first_param() const; param_iterator last_param() const; // arguments access const_argument_ptr operator[]( cstring string_id ) const; cstring get( cstring string_id ) const; template
T const& get( cstring string_id ) const { return arg_value
( valid_argument( string_id ) ); } template
void get( cstring string_id, boost::optional
& res ) const { const_argument_ptr arg = (*this)[string_id]; if( arg ) res = arg_value
( *arg ); else res.reset(); } // help/usage void usage( out_stream& ostr ); void help( out_stream& ostr ); private: argument const& valid_argument( cstring string_id ) const; // Data members argv_traverser m_traverser; std::list
m_parameters; dstring m_program_name; }; //____________________________________________________________________________// } // namespace cla } // namespace BOOST_RT_PARAM_NAMESPACE } // namespace boost #ifndef BOOST_RT_PARAM_OFFLINE # define BOOST_RT_PARAM_INLINE inline # include
#endif #endif // BOOST_RT_CLA_PARSER_HPP_062604GER
parser.hpp
Page URL
File URL
Prev
22/30
Next
Download
( 4 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.