Go to the documentation of this file.
   26 #include "sdf/sdf_config.h" 
   34 #pragma warning(disable: 4251) 
   42   inline namespace SDF_VERSION_NAMESPACE {
 
   63   std::string 
findFile(
const std::string &_filename,
 
   64                        bool _searchLocalPath = 
true,
 
   65                        bool _useCallback = 
false);
 
   72   void addURIPath(
const std::string &_uri, 
const std::string &_path);
 
   79   void setFindCallback(std::function<std::string (
const std::string &)> _cb);
 
   88     public: 
void PrintDescription();
 
   89     public: 
void PrintValues();
 
   90     public: 
void PrintDoc();
 
   91     public: 
void Write(
const std::string &_filename);
 
   92     public: std::string ToString() 
const;
 
   95     public: 
void SetFromString(
const std::string &_sdfData);
 
  110     public: std::string FilePath() 
const;
 
  114     public: 
void SetFilePath(
const std::string &_path);
 
  118     public: 
void SetOriginalVersion(
const std::string &_version);
 
  122     public: 
const std::string &OriginalVersion() 
const;
 
  126     public: 
static std::string Version();
 
  130     public: 
static void Version(
const std::string &_version);
 
  150     public: 
static const std::string &EmbeddedSpec(
 
  151                 const std::string &_filename, 
const bool _quiet);
 
  155     private: std::unique_ptr<SDFPrivate> dataPtr;
 
  159     private: 
static std::string version;
 
  
SDFORMAT_VISIBLE std::string findFile(const std::string &_filename, bool _searchLocalPath=true, bool _useCallback=false)
Find the absolute path of a file.
 
namespace for Simulation Description Format parser
Definition: Actor.hh:32
 
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:54
 
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
 
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
 
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:50
 
Base SDF class.
Definition: SDFImpl.hh:83
 
class SDFORMAT_VISIBLE SDF
Definition: SDFImpl.hh:45
 
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.