26 #include <vsg/io/ReaderWriter.h>
34 class VSG_DECLSPEC
txt :
public Inherit<ReaderWriter, txt>
ReaderWriter for reading and writing text files of different types such as .txt, ,...
Definition: txt.h:35
ref_ptr< Object > read(const Path &filename, ref_ptr< const Options > options={}) const override
read object from file, return object on success, return null ref_ptr<> if format not supported,...
bool getFeatures(Features &features) const override
get the Features supported by this ReaderWriter
ref_ptr< Object > read(const uint8_t *ptr, size_t size, ref_ptr< const Options >={}) const override
read object from memory block, return object on success, return null ref_ptr<> if format not supporte...
std::set< vsg::Path > supportedExtensions
supported extensions, users may add/remove entries to customize which types of files can be read as a...
Definition: txt.h:46
ref_ptr< Object > read(std::istream &fin, ref_ptr< const Options > options={}) const override
read object from input stream, return object on success, return null ref_ptr<> if format not supporte...
static bool extensionSupported(const vsg::Path &path)
built-in supported extensions
Definition: ReaderWriter.h:92