6#include "vtkIOCoreModule.h"
17VTK_ABI_NAMESPACE_BEGIN
140 bool HasBaseURI()
const {
return this->GetBaseURI() !=
nullptr; }
182 return this->Load(uri.data(), uri.size());
273 std::unique_ptr<vtkInternals> Impl;
a simple class to control print indentation
abstract base class for most VTK objects
Hold a reference to a vtkObjectBase instance.
Helper class for readers and importer that need to load more than one resource.
vtkSmartPointer< vtkURI > Resolve(const vtkURI *uri)
Resolve URI from base URI.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool SetBaseURI(const std::string &uri)
Set base URI to use.
static vtkURILoader * New()
vtkURILoader()
Constructor.
vtkSmartPointer< vtkResourceStream > Load(const vtkURI *uri)
Try to resolve given URI from base URI, using vtkURI::Resolve.
vtkSmartPointer< vtkResourceStream > Load(const char *uri, std::size_t size)
Load a resource referenced by an URI.
vtkURILoader & operator=(const vtkURILoader &)=delete
bool SetBaseFileName(VTK_FILEPATH const std::string &filepath)
Higher level way to set the base URI to an existing file.
vtkSmartPointer< vtkResourceStream > LoadData(const vtkURI &uri)
Load a resource from a data URI.
vtkURI * GetBaseURI() const
Get base URI.
vtkSmartPointer< vtkResourceStream > Load(const std::string &uri)
Load a resource referenced by an URI.
bool HasBaseURI() const
Check if loader as a base URI.
bool SetBaseDirectory(VTK_FILEPATH const std::string &dirpath)
Higher level way to set the base URI to an existing directory.
vtkURILoader(const vtkURILoader &)=delete
virtual vtkSmartPointer< vtkResourceStream > DoLoad(const vtkURI &uri)
Load a resource from a full URI.
bool SetBaseURI(vtkURI *uri)
Set base URI to use.
vtkSmartPointer< vtkResourceStream > LoadResolved(const vtkURI *uri)
Load a resource from a full URI.
vtkSmartPointer< vtkResourceStream > LoadFile(const vtkURI &uri)
Load a resource from a file URI.