Click here to Skip to main content
15,896,111 members
Articles / Programming Languages / XML

XmlBind: putting PugXML on steroïds !

Rate me:
Please Sign up or sign in to vote.
3.36/5 (10 votes)
2 Oct 20035 min read 132.2K   580   31  
A mutant XML parser using IoBind, EDOM and PugXML.
// iobind library
//
// author: Jonathan de Halleux, 2003

#ifndef IOBIND_PAIR_POLICY_PROPERTY_HPP
#define IOBIND_PAIR_POLICY_PROPERTY_HPP

namespace iobind{
namespace property{

template<
	typename FirstPolicy,
	typename SecondPolicy
>
class pair_policy_property
{
public:
	typedef FirstPolicy first_policy_type;
	typedef FirstPolicy const& first_policy_const_reference;
	typedef SecondPolicy second_policy_type;
	typedef SecondPolicy const& second_policy_const_reference;
	
	explicit pair_policy_property(
		first_policy_const_reference first_policy_,	
		second_policy_const_reference second_policy_
		)
		:
		m_first_policy(first_policy_),
		m_second_policy(second_policy_)
		{};

	first_policy_const_reference get_first_policy() const		{	return m_first_policy;};
	second_policy_const_reference get_second_policy() const	{	return m_second_policy;};

private:
	first_policy_type m_first_policy;	
	second_policy_type m_second_policy;
};

};
};
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
United States United States
Jonathan de Halleux is Civil Engineer in Applied Mathematics. He finished his PhD in 2004 in the rainy country of Belgium. After 2 years in the Common Language Runtime (i.e. .net), he is now working at Microsoft Research on Pex (http://research.microsoft.com/pex).

Comments and Discussions