123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- #ifndef BOOST_PROPERTY_TREE_PTREE_FWD_HPP_INCLUDED
- #define BOOST_PROPERTY_TREE_PTREE_FWD_HPP_INCLUDED
- #include <boost/config.hpp>
- #include <boost/optional/optional_fwd.hpp>
- #include <boost/throw_exception.hpp>
- #include <functional> // for std::less
- #include <memory> // for std::allocator
- #include <string>
- namespace boost { namespace property_tree
- {
- namespace detail {
- template <typename T> struct less_nocase;
- }
-
- template < class Key, class Data, class KeyCompare = std::less<Key> >
- class basic_ptree;
- template <typename T>
- struct id_translator;
- template <typename String, typename Translator>
- class string_path;
-
- #if 0
- concept PropertyTreePath<class Path> {
-
- typename key_type;
-
-
- key_type Path::reduce();
-
- bool Path::empty() const;
-
- bool Path::single() const;
-
- std::string Path::dump() const;
- }
- concept PropertyTreeKey<class Key> {
- PropertyTreePath path;
- requires SameType<Key, PropertyTreePath<path>::key_type>;
- }
- concept PropertyTreeTranslator<class Tr> {
- typename internal_type;
- typename external_type;
- boost::optional<external_type> Tr::get_value(internal_type);
- boost::optional<internal_type> Tr::put_value(external_type);
- }
- #endif
-
-
-
-
- template <typename Key>
- struct path_of;
-
-
-
-
- template <typename Internal, typename External>
- struct translator_between;
- class ptree_error;
- class ptree_bad_data;
- class ptree_bad_path;
-
-
- typedef string_path<std::string, id_translator<std::string> > path;
-
- typedef basic_ptree<std::string, std::string> ptree;
-
- typedef basic_ptree<std::string, std::string,
- detail::less_nocase<std::string> >
- iptree;
- #ifndef BOOST_NO_STD_WSTRING
-
- typedef string_path<std::wstring, id_translator<std::wstring> > wpath;
-
- typedef basic_ptree<std::wstring, std::wstring> wptree;
-
- typedef basic_ptree<std::wstring, std::wstring,
- detail::less_nocase<std::wstring> >
- wiptree;
- #endif
-
-
- template<class K, class D, class C>
- void swap(basic_ptree<K, D, C> &pt1,
- basic_ptree<K, D, C> &pt2);
- } }
- #if !defined(BOOST_PROPERTY_TREE_DOXYGEN_INVOKED)
-
- # define BOOST_PROPERTY_TREE_THROW(e) BOOST_THROW_EXCEPTION(e)
- #endif
- #endif
|