Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::ObjectBase Class ReferenceThis base class provides the root functionality for all plist entities -- Dictionary and the various templated subclasses of PrimitiveBase. More...
Inheritance diagram for plist::ObjectBase:
Detailed DescriptionThis base class provides the root functionality for all plist entities -- Dictionary and the various templated subclasses of PrimitiveBase. The subclasses may throw XMLLoadSave::bad_format if the document is poorly structured or bad values are found. Definition at line 133 of file plistBase.h.
Constructor & Destructor Documentation
constructor Definition at line 11 of file plistBase.cc.
destructor Definition at line 15 of file plistBase.cc. Member Function Documentation
template<typename T >
casting operator: return current value as specified type (throws std::runtime_error exception if bad cast, e.g. dictionary or array to value type) The implementation for this function is defined by a series of specializations. This allows you to add casts for additional user-defined types, as well as get compile time error if you attempt to cast to an unsupported type. (I really wish we had virtual templated functions...) Referenced by plist::Primitive< bool >::operator=(), XWalkMC::ParameterTransition::plistValueChanged(), and XWalkMC::ParameterTransition::update().
allows a copy to be made of an event, supporting polymorphism Implements Cloneable. Implemented in LinkComponent, KinematicJoint, SensorInfo, SensorRangeFinder, SensorContact, SensorFeedback, GPSSensor, OdometrySensor, RectangularObstacle, CircularObstacle, EllipticalObstacle, ConvexPolyObstacle, HierarchicalObstacle, BoxObstacle, CylindricalObstacle, SphericalObstacle, EllipsoidObstacle, plist::DictionaryOf< PO, Alloc >, plist::ArrayOf< PO, Alloc >, plist::Primitive< T >, plist::NamedEnumeration< T >, plist::OutputSelector, plist::Angle, plist::RGBColor< T >, plist::DictionaryOf< SinusoidalParameters >, plist::DictionaryOf< plist::Primitive< float > >, plist::DictionaryOf< plist::Primitive< T > >, plist::DictionaryOf< plist::Point >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, plist::ArrayOf< plist::Primitive< PLISTREAL > >, plist::Primitive< fmat::fmatReal >, plist::Primitive< PLISTREAL >, plist::Primitive< std::string >, plist::Primitive< float >, plist::Primitive< int >, plist::Primitive< unsigned int >, plist::Primitive< unsigned short >, plist::Primitive< string >, plist::Primitive< storage_t >, plist::Primitive< bool >, plist::NamedEnumeration< Config::vision_config::encoding_t >, plist::NamedEnumeration< J_DCT_METHOD >, plist::NamedEnumeration< Config::transports >, plist::NamedEnumeration< gain_levels >, plist::NamedEnumeration< volume_levels >, plist::NamedEnumeration< compression_t >, plist::NamedEnumeration< white_balance_levels >, plist::NamedEnumeration< consoleMode_t >, plist::NamedEnumeration< JointType_t >, and plist::NamedEnumeration< shutter_speeds >. returns the root element of the xml document Reimplemented from XMLLoadSave. Definition at line 30 of file plistBase.cc. Referenced by setParseTree().
subclasses are expected to provide a working implementation Implements XMLLoadSave. Implemented in KinematicJoint, RectangularObstacle, CircularObstacle, EllipticalObstacle, ConvexPolyObstacle, BoxObstacle, CylindricalObstacle, SphericalObstacle, EllipsoidObstacle, InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >, plist::DictionaryBase, plist::ArrayBase, plist::Primitive< T >, plist::NamedEnumeration< T >, plist::OutputSelector, plist::Angle, plist::Point, plist::RGBColor< T >, plist::Primitive< fmat::fmatReal >, plist::Primitive< PLISTREAL >, plist::Primitive< std::string >, plist::Primitive< float >, plist::Primitive< int >, plist::Primitive< unsigned int >, plist::Primitive< unsigned short >, plist::Primitive< string >, plist::Primitive< storage_t >, plist::Primitive< bool >, plist::NamedEnumeration< Config::vision_config::encoding_t >, plist::NamedEnumeration< J_DCT_METHOD >, plist::NamedEnumeration< Config::transports >, plist::NamedEnumeration< gain_levels >, plist::NamedEnumeration< volume_levels >, plist::NamedEnumeration< compression_t >, plist::NamedEnumeration< white_balance_levels >, plist::NamedEnumeration< consoleMode_t >, plist::NamedEnumeration< JointType_t >, and plist::NamedEnumeration< shutter_speeds >.
returns true if str is some form of negative (e.g. "false" or "no") Definition at line 205 of file plistBase.h.
returns true if str is some form of affirmative (e.g. "true" or "yes") Definition at line 203 of file plistBase.h.
polymorphic assignment operator, see assign() This is protected for two reasons: one, so you don't accidentally use it via simple '=' statement, and two, to avoid 'operator= was hidden' warnings in every base class (because they keep reintroducing their default operator=(), hiding/shadowing this one (if it were virtual, as it would need to be to take on the role filled by assign(). Definition at line 181 of file plistBase.h.
subclasses are expected to provide a working implementation Implements XMLLoadSave. Implemented in KinematicJointSaver, RectangularObstacle, CircularObstacle, EllipticalObstacle, ConvexPolyObstacle, BoxObstacle, CylindricalObstacle, SphericalObstacle, EllipsoidObstacle, plist::DictionaryBase, plist::ArrayBase, plist::Primitive< T >, plist::NamedEnumeration< T >, plist::OutputSelector, plist::Angle, plist::Point, plist::RGBColor< T >, plist::Primitive< fmat::fmatReal >, plist::Primitive< PLISTREAL >, plist::Primitive< std::string >, plist::Primitive< float >, plist::Primitive< int >, plist::Primitive< unsigned int >, plist::Primitive< unsigned short >, plist::Primitive< string >, plist::Primitive< storage_t >, plist::Primitive< bool >, plist::NamedEnumeration< Config::vision_config::encoding_t >, plist::NamedEnumeration< J_DCT_METHOD >, plist::NamedEnumeration< Config::transports >, plist::NamedEnumeration< gain_levels >, plist::NamedEnumeration< volume_levels >, plist::NamedEnumeration< compression_t >, plist::NamedEnumeration< white_balance_levels >, plist::NamedEnumeration< consoleMode_t >, plist::NamedEnumeration< JointType_t >, and plist::NamedEnumeration< shutter_speeds >. Referenced by plist::DictionaryBase::saveXMLNode().
polymorphic assignment (throws std::bad_cast if the assignment is between invalid types, i.e. a primitive and a collection, or different collection types) Implemented in plist::PrimitiveBase, plist::DictionaryOf< PO, Alloc >, plist::ArrayOf< PO, Alloc >, plist::RGBColor< T >, plist::DictionaryOf< SinusoidalParameters >, plist::DictionaryOf< plist::Primitive< float > >, plist::DictionaryOf< plist::Primitive< T > >, plist::DictionaryOf< plist::Point >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >.
assigns a parse tree which you have obtained from some other source This doesn't update the contents of the subclass's values. The values in doc will be overwritten by those in the subclass on the next Save. If you wish to have the subclass's values updated from doc, call readParseTree() after calling this. Reimplemented from XMLLoadSave. Definition at line 17 of file plistBase.cc. Referenced by GaitedFootsteps::setGait().
return current value as a boolean (throws std::runtime_error exception if incompatable, e.g. dictionary or array to value type) Does something a little smarter than assuming numeric conversion if called on a string... Definition at line 156 of file plistBase.h.
return current value as a character (throws std::runtime_error exception if incompatable, e.g. dictionary or array to value type) Does something a little smarter than assuming numeric conversion if called on a string... Definition at line 159 of file plistBase.h.
return current value as a double (throws std::runtime_error exception if incompatable, e.g. dictionary or array to value type) Implemented in plist::Collection, plist::Primitive< T >, plist::NamedEnumeration< T >, plist::Primitive< fmat::fmatReal >, plist::Primitive< PLISTREAL >, plist::Primitive< std::string >, plist::Primitive< float >, plist::Primitive< int >, plist::Primitive< unsigned int >, plist::Primitive< unsigned short >, plist::Primitive< string >, plist::Primitive< storage_t >, plist::Primitive< bool >, plist::NamedEnumeration< Config::vision_config::encoding_t >, plist::NamedEnumeration< J_DCT_METHOD >, plist::NamedEnumeration< Config::transports >, plist::NamedEnumeration< gain_levels >, plist::NamedEnumeration< volume_levels >, plist::NamedEnumeration< compression_t >, plist::NamedEnumeration< white_balance_levels >, plist::NamedEnumeration< consoleMode_t >, plist::NamedEnumeration< JointType_t >, and plist::NamedEnumeration< shutter_speeds >.
return current value as an (long) integer (throws std::runtime_error exception if incompatable, e.g. dictionary or array to value type) Implemented in plist::Collection, plist::Primitive< T >, plist::NamedEnumeration< T >, plist::Primitive< fmat::fmatReal >, plist::Primitive< PLISTREAL >, plist::Primitive< std::string >, plist::Primitive< float >, plist::Primitive< int >, plist::Primitive< unsigned int >, plist::Primitive< unsigned short >, plist::Primitive< string >, plist::Primitive< storage_t >, plist::Primitive< bool >, plist::NamedEnumeration< Config::vision_config::encoding_t >, plist::NamedEnumeration< J_DCT_METHOD >, plist::NamedEnumeration< Config::transports >, plist::NamedEnumeration< gain_levels >, plist::NamedEnumeration< volume_levels >, plist::NamedEnumeration< compression_t >, plist::NamedEnumeration< white_balance_levels >, plist::NamedEnumeration< consoleMode_t >, plist::NamedEnumeration< JointType_t >, and plist::NamedEnumeration< shutter_speeds >. Referenced by plist::NamedEnumeration< shutter_speeds >::operator=(), toBool(), and toChar().
return current value as a string Implemented in PlannerObstacle< N >, RectangularObstacle, CircularObstacle, EllipticalObstacle, ConvexPolyObstacle, HierarchicalObstacle, BoxObstacle, CylindricalObstacle, SphericalObstacle, EllipsoidObstacle, plist::PrimitiveBase, plist::DictionaryBase, plist::ArrayBase, and plist::RGBColor< T >. Referenced by plist::operator<<(), and ConfigurationEditor::NewCollectionEntry::refresh(). returns path from document root to node (forwards to xmlGetNodePath, returns new allocation, so call xmlFree) Definition at line 71 of file plistBase.cc. Referenced by KinematicJointLoader::loadXMLNode(). returns children of node (not a libxml function) Definition at line 77 of file plistBase.cc. Referenced by plist::ArrayBase::loadXML(), KinematicJointLoader::loadXMLNode(), plist::ArrayBase::saveXML(), KinematicJoint::saveXML(), and KinematicJointSaver::saveXML(). returns document node of node (not a libxml function) Definition at line 92 of file plistBase.cc. returns last child of node (not a libxml function) Definition at line 80 of file plistBase.cc. Referenced by OutputConfig< T >::saveXML(). returns name of node (not a libxml function) Definition at line 68 of file plistBase.cc. Referenced by plist::RGBColor< T >::loadXML(), plist::ArrayBase::loadXML(), and plist::DictionaryBase::loadXML(). returns next node (sibling) after node (not a libxml function) Definition at line 83 of file plistBase.cc. Referenced by plist::ArrayBase::loadXML(), plist::ArrayBase::saveXML(), and plist::DictionaryBase::saveXML(). returns parent node of node (not a libxml function) Definition at line 89 of file plistBase.cc. Referenced by KinematicJoint::saveXML(), and KinematicJointSaver::saveXML(). returns previous node (sibling) before node (not a libxml function) Definition at line 86 of file plistBase.cc. returns URL/file of node (not a libxml function) Definition at line 74 of file plistBase.cc. Referenced by KinematicJointLoader::loadXMLNode().
returns true if the name of node matches name Definition at line 65 of file plistBase.cc. Referenced by plist::RGBColor< T >::loadXML(), plist::Point::loadXML(), plist::Angle::loadXML(), plist::OutputSelector::loadXML(), plist::ArrayBase::loadXML(), plist::DictionaryBase::loadXML(), KinematicJoint::loadXML(), KinematicJointLoader::loadXMLNode(), plist::RGBColor< T >::saveXML(), KinematicJoint::saveXML(), and KinematicJointSaver::saveXML().
returns true if node is an XML_COMMENT_NODE (not a libxml function) Definition at line 101 of file plistBase.cc.
returns true if node is an XML_ELEMENT_NODE (not a libxml function) Definition at line 98 of file plistBase.cc.
returns true if node is an XML_TEXT_NODE (not a libxml function) Definition at line 95 of file plistBase.cc. Referenced by plist::DictionaryBase::saveOverXMLNode(), and OutputConfig< T >::saveXML(). Friends And Related Function Documentation
This specialization looks for the SensorInfo::sensorType, then has the factory construct the correct subtype before loading the node into and returning that. From the name of node, will instantiate a new ObjectBase subclass to load it. supports use of plist::ArrayOf<PlannerObstacle> for polymorphic load/save The mapping from node names to actual instantiated types is:
If successful, returns a pointer to a newly allocated region, which the caller is responsible for freeing. If an error occurs, NULL is returned. attempts to load a new T instance from the specified xmlNode Implements XMLLoadSave. Reimplemented in KinematicJoint, RectangularObstacle, CircularObstacle, EllipticalObstacle, ConvexPolyObstacle, BoxObstacle, CylindricalObstacle, SphericalObstacle, EllipsoidObstacle, InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >, plist::DictionaryBase, plist::ArrayBase, plist::Primitive< T >, plist::NamedEnumeration< T >, plist::OutputSelector, plist::Angle, plist::Point, plist::RGBColor< T >, plist::Primitive< fmat::fmatReal >, plist::Primitive< PLISTREAL >, plist::Primitive< std::string >, plist::Primitive< float >, plist::Primitive< int >, plist::Primitive< unsigned int >, plist::Primitive< unsigned short >, plist::Primitive< string >, plist::Primitive< storage_t >, plist::Primitive< bool >, plist::NamedEnumeration< Config::vision_config::encoding_t >, plist::NamedEnumeration< J_DCT_METHOD >, plist::NamedEnumeration< Config::transports >, plist::NamedEnumeration< gain_levels >, plist::NamedEnumeration< volume_levels >, plist::NamedEnumeration< compression_t >, plist::NamedEnumeration< white_balance_levels >, plist::NamedEnumeration< consoleMode_t >, plist::NamedEnumeration< JointType_t >, and plist::NamedEnumeration< shutter_speeds >. Definition at line 27 of file plistCollections.h. The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:24 2016 by Doxygen 1.6.3 |