28 #ifndef OST_DATA_INFO_ITEM_H
29 #define OST_DATA_INFO_ITEM_H
31 #include <boost/lexical_cast.hpp>
42 namespace ost {
namespace info {
55 void SetName(
const String& n);
67 void SetValue(
const String& val);
94 void SetFloat(
Real d);
105 void SetAttribute(
const String& name,
const String& value);
107 bool HasAttribute(
const String& name)
const;
109 void RemoveAttribute(
const String& name);
111 String GetComment()
const;
114 std::vector<String> GetAttributeList()
const;
127 template <
typename T>
void DLLEXPORT_OST_INFO SetIntInfoItem(InfoGroup ig, const InfoPath &path, int val)
#define DLLEXPORT_OST_INFO
String GetValue() const
retrieve value of item
void DLLEXPORT_OST_INFO SetFloatInfoItem(InfoGroup ig, const InfoPath &path, Real val)
geom::Vec3 DLLEXPORT_OST_INFO GetVectorInfoItem(const InfoGroup &ig, const InfoPath &path, const geom::Vec3 &def)
bool DLLEXPORT_OST_GEOM operator==(const Line2 &l1, const Line2 &l2)
String DLLEXPORT_OST_INFO GetStringInfoItem(const InfoGroup &ig, const InfoPath &path, const String &def)
DLLEXPORT_OST_IMG_BASE bool operator!=(const ImageHandle &lhs, const ConstImageHandle &rhs)
T Extract(const info::InfoGroup &g, const String &n)
Convenience function to extract a value from an item.
InfoItem GetItem(const InfoPath &path, bool use_defaults=true) const
int DLLEXPORT_OST_INFO GetIntInfoItem(const InfoGroup &ig, const InfoPath &path, int def)
Three dimensional vector class, using Real precision.
boost::shared_ptr< detail::EleImpl > ElePtr
bool DLLEXPORT_OST_INFO GetBoolInfoItem(const InfoGroup &ig, const InfoPath &path, bool def)
void DLLEXPORT_OST_INFO SetStringInfoItem(InfoGroup ig, const InfoPath &path, const String &val)
Real DLLEXPORT_OST_INFO GetFloatInfoItem(const InfoGroup &ig, const InfoPath &path, Real def)
void DLLEXPORT_OST_INFO SetVectorInfoItem(InfoGroup ig, const InfoPath &path, const geom::Vec3 &val)
void DLLEXPORT_OST_INFO SetBoolInfoItem(InfoGroup ig, const InfoPath &path, bool val)