![]() |
Trax3 3.1.0
trax track library
|
ptree operator support More...
Functions | |
Property Tree Streaming Support for spat classes | |
The operators will write the objects with their XML names and syntax. | |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &opt, const Position< Valtype > &p) |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator>> (boost::property_tree::ptree &ipt, Position< Valtype > &p) |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &opt, const Position2D< Valtype > &p) |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator>> (boost::property_tree::ptree &ipt, Position2D< Valtype > &p) |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &opt, const Vector< Valtype > &v) |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator>> (boost::property_tree::ptree &ipt, Vector< Valtype > &v) |
| template<typename Valtype, typename ValtypeT> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &opt, const VectorBundle< Valtype, ValtypeT > &vb) |
| template<typename Valtype, typename ValtypeT> | |
| boost::property_tree::ptree & | operator>> (boost::property_tree::ptree &ipt, VectorBundle< Valtype, ValtypeT > &vb) |
| template<typename Valtype, typename ValtypeT> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &opt, const VectorBundle2< Valtype, ValtypeT > &vb2) |
| template<typename Valtype, typename ValtypeT> | |
| boost::property_tree::ptree & | operator>> (boost::property_tree::ptree &ipt, VectorBundle2< Valtype, ValtypeT > &vb2) |
| template<typename Valtype, typename ValtypeT> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &opt, const Frame< Valtype, ValtypeT > &f) |
| template<typename Valtype, typename ValtypeT> | |
| boost::property_tree::ptree & | operator>> (boost::property_tree::ptree &ipt, Frame< Valtype, ValtypeT > &f) |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &pt, const Box< Valtype > §ion) |
| template<typename Valtype> | |
| boost::property_tree::ptree & | operator<< (boost::property_tree::ptree &pt, const Rect< Valtype > &rect) |
Property Tree read/write support for spat classes | |
The methods will expect the XML names and syntax. These read methods will leave the property tree unchanged while the operator versions will remove the read tags. | |
| template<typename Valtype> | |
| void | ReadPosition (const boost::property_tree::ptree &pt, Position< Valtype > &position) |
| template<typename Valtype> | |
| bool | FindPosition (const boost::property_tree::ptree &pt, Position< Valtype > &position) |
| template<typename Valtype> | |
| void | ReadPosition2D (const boost::property_tree::ptree &pt, Position2D< Valtype > &position) |
| template<typename Valtype> | |
| void | ReadVector (const boost::property_tree::ptree &pt, Vector< Valtype > &vector) |
| template<typename Valtype> | |
| bool | FindVector (const boost::property_tree::ptree &pt, Vector< Valtype > &vector) |
| template<typename Valtype, typename ValtypeT> | |
| void | ReadFrame (const boost::property_tree::ptree &pt, Frame< Valtype, ValtypeT > &frame) |
| template<typename Valtype, typename ValtypeT> | |
| bool | FindFrame (const boost::property_tree::ptree &pt, Frame< Valtype, ValtypeT > &frame) |
| template<typename Valtype, typename ValtypeT> | |
| void | ReadVectorBundle (const boost::property_tree::ptree &pt, VectorBundle< Valtype, ValtypeT > &VectorBundle) |
| template<typename Valtype, typename ValtypeT> | |
| void | ReadVectorBundle2 (const boost::property_tree::ptree &pt, VectorBundle2< Valtype, ValtypeT > &VectorBundle2) |
| template<typename Valtype> | |
| void | ReadRect (const boost::property_tree::ptree &pt, Rect< Valtype > &rect) |
| template<typename Valtype> | |
| void | ReadArea (const boost::property_tree::ptree &pt, Box< Valtype > &area) |
| template<typename Valtype> | |
| bool | FindArea (const boost::property_tree::ptree &pt, Box< Valtype > &area) |
ptree operator support
If you want to use these in a namespace that itself declares overloads of these operators, use using declarations to bring them into scope (e.g.: using spat::ptreesupport::operator<<;); otherwise they will be hidden by the namespace's own overloads.