34#include <NDEVR/IOFactory.h>
35#include <NDEVR/FactoryFeatures.h>
36#include <NDEVR/FactoryOptions.h>
43 struct ASCIIPointOptions;
74#if NDEVR_STATION_MODEL
182#if NDEVR_STATION_MODEL
Buffer< UUID > filterModelsToExport(Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const override
Filters a set of model UUIDs to only those that can be exported in the given format.
virtual bool isRecursiveWrite(const FactoryParameters ¶ms) const
Checks whether writing should recurse into child models.
static void WriteHeaders(const AsciiOptions &options, String &string, bool add_new_line=true)
Writes column header names to a string based on the given ASCII options.
FactoryOptions defaultWriteOptions(const FactoryParameters &file) const override
Returns the default write options for the given file.
FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const override
Returns the feature set supported by this factory for the given file and direction.
virtual bool writeFile(FactoryParameters ¶meters) override
Writes design objects to an ASCII file.
virtual void getSupportedFormats(Buffer< FileFormat > &formats, bool is_read) override
Populates the given buffer with file formats supported by this factory.
static DesignParameter NoneParameter()
Returns a DesignParameter representing a "none" or empty column mapping.
bool canRead(const FactoryParameters &file) override
Checks whether this factory can read the specified file.
virtual bool writeToString(String &output, const FactoryParameters ¶meters, uint04 max_line_count)
Writes design data to a string instead of a file, up to a maximum number of lines.
virtual void getSupportedFormatsByModelType(Buffer< FileFormat > &formats, bool is_read, const StringView &model_type) override
Populates the given buffer with file formats supported for a specific model type.
FactoryOptions defaultReadOptions(const FactoryParameters &file) const override
Returns the default read options for the given file.
virtual bool readFile(FactoryParameters ¶meters) override
Reads an ASCII file and populates design objects from the parsed data.
static ASCIIPointOptions ReadPoints(FactoryParameters ¶meters, Model &root, Buffer< DesignParameter > ¶ms)
Reads point data from an ASCII file into a model and populates parameter mappings.
virtual String getIcon(const File &file) override
Returns the icon name associated with a given file.
static FileFormat PointFormat()
Returns the FileFormat descriptor for ASCII point files.
virtual void getSupportedFormats(Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) override
Populates the given buffer with file formats supported for specific models.
AsciiFactory()
Constructs a default AsciiFactory with standard settings.
AsciiFactory(const StringView &name)
Constructs an AsciiFactory with a specific name identifier.
Storage class for all IO options related to an Ascii file output used by an IOFactory services that w...
The equivelent of std::vector but with a bit more control.
A core class where all Design Objects including models, materials, and geometries are stored.
A definition of data that is logically stored in the Model hierarchy.
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
User-defined options that define preferences for importing and exporting using IOFactory objects.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
IOFactory(const StringView &factory_name)
Constructs an IOFactory with the given factory name.
const String & name() const
Returns the name of this factory.
A core class that represents a node on model hierarchy.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
A container of input information that is to be filled with output information by an IOFactory.