libSBML C++ API
libSBML 5.8.0 C++ API
|
This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. It is a class used in the implementation of extra functionality provided by libSBML.
The SBMLFileResolver class is the class used for the resolving URIs for relative or absolute files for SBML documents.
Public Member Functions | |
virtual void | addAdditionalDir (const std::string &dir) |
Adds a directory to the list of additional directories in which to search for files to resolve. More... | |
virtual void | clearAdditionalDirs () |
Removes the list of additional directories in which to search for files to resolve. More... | |
virtual SBMLFileResolver * | clone () const |
Creates and returns a deep copy of this SBMLFileResolver object. More... | |
SBMLFileResolver & | operator= (const SBMLFileResolver &rhs) |
Assignment operator for SBMLFileResolver. More... | |
virtual SBMLDocument * | resolve (const std::string &uri, const std::string &baseUri="") const |
Resolves the document for the given URI. More... | |
virtual SBMLUri * | resolveUri (const std::string &uri, const std::string &baseUri="") const |
Resolves the full URI for the given URI without actually reading the document. More... | |
SBMLFileResolver () | |
Creates a new SBMLFileResolver object. More... | |
SBMLFileResolver (const SBMLFileResolver &c) | |
Copy constructor; creates a copy of an SBMLFileResolver object. More... | |
virtual void | setAdditionalDirs (const std::vector< std::string > &dirs) |
Sets the list of additional directories in which to search for files to resolve. More... | |
virtual | ~SBMLFileResolver () |
Destroy this SBMLFileResolver object. More... | |
SBMLFileResolver::SBMLFileResolver | ( | ) |
Creates a new SBMLFileResolver object.
SBMLFileResolver::SBMLFileResolver | ( | const SBMLFileResolver & | c | ) |
Copy constructor; creates a copy of an SBMLFileResolver object.
c | the SBMLFileResolver object to copy. |
SBMLConstructorException | Thrown if the argument orig is NULL . |
|
virtual |
Destroy this SBMLFileResolver object.
|
virtual |
Adds a directory to the list of additional directories in which to search for files to resolve.
dir | The directory to add |
|
virtual |
Removes the list of additional directories in which to search for files to resolve.
Only absolute or relative directories will be searched.
|
virtual |
Creates and returns a deep copy of this SBMLFileResolver object.
Reimplemented from SBMLResolver.
SBMLFileResolver & SBMLFileResolver::operator= | ( | const SBMLFileResolver & | rhs | ) |
Assignment operator for SBMLFileResolver.
rhs | The object whose values are used as the basis of the assignment. |
SBMLConstructorException | Thrown if the argument rhs is NULL . |
|
virtual |
Resolves the document for the given URI.
uri | the uri to the target document |
baseUri | base uri, in case the uri is a relative one |
Reimplemented from SBMLResolver.
|
virtual |
Resolves the full URI for the given URI without actually reading the document.
uri | the uri to the target document |
baseUri | base uri, in case the uri is a relative one |
Reimplemented from SBMLResolver.
|
virtual |
Sets the list of additional directories in which to search for files to resolve.
dirs | A vector of strings which contain directories |