21 #include <boost/shared_ptr.hpp>
29 #pragma GCC diagnostic push
30 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34 #pragma GCC diagnostic pop
45 typedef boost::shared_ptr<SDF>
SDFPtr;
57 std::string
findFile(
const std::string &_filename,
58 bool _searchLocalPath =
true,
59 bool _useCallback =
false);
66 void addURIPath(
const std::string &_uri,
const std::string &_path);
73 void setFindCallback(boost::function<std::string (
const std::string &)> _cb);
81 public:
void PrintDescription();
82 public:
void PrintValues();
83 public:
void PrintWiki();
84 public:
void PrintDoc();
85 public:
void Write(
const std::string &_filename);
86 public: std::string ToString()
const;
89 public:
void SetFromString(
const std::string &_sdfData);
101 public:
static std::string Version();
105 public:
static void Version(
const std::string &_version);
109 #pragma warning(push)
110 #pragma warning(disable : 4251)
Base SDF class.
Definition: SDFImpl.hh:76
SDF * SDFPtr
Definition: SDFImpl.hh:45
SDFORMAT_VISIBLE void setFindCallback(boost::function< std::string(const std::string &)> _cb)
Set the callback to use when SDF can't find a file.
class SDFORMAT_VISIBLE SDF
Definition: SDFImpl.hh:41
SDF Element class.
Definition: Element.hh:65
SDFORMAT_VISIBLE std::string findFile(const std::string &_filename, bool _searchLocalPath=true, bool _useCallback=false)
Find the absolute path of a file.
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
SDFORMAT_VISIBLE void addURIPath(const std::string &_uri, const std::string &_path)
Associate paths to a URI.
#define SDF_DEPRECATED(version)
Definition: Types.hh:37