33 #pragma warning(disable: 4251)
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(std::function<std::string (
const std::string &)> _cb);
83 public:
void PrintDescription();
84 public:
void PrintValues();
85 public:
void PrintDoc();
86 public:
void Write(
const std::string &_filename);
87 public: std::string ToString()
const;
90 public:
void SetFromString(
const std::string &_sdfData);
102 public:
static std::string Version();
106 public:
static void Version(
const std::string &_version);
115 private: std::unique_ptr<SDFPrivate> dataPtr;
119 private:
static std::string version;
Base SDF class.
Definition: SDFImpl.hh:78
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:44
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:41
class SDFORMAT_VISIBLE SDF
Definition: SDFImpl.hh:40
Private data for base SDF class.
Definition: SDFImplPrivate.hh:27
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.
SDFORMAT_VISIBLE void setFindCallback(std::function< std::string(const std::string &)> _cb)
Set the callback to use when SDF can't find a file.
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:45