|
| | AsciiFactory () |
| | Constructs a default AsciiFactory with standard settings.
|
| | AsciiFactory (const StringView &name) |
| | Constructs an AsciiFactory with a specific name identifier.
|
| bool | canRead (const FactoryParameters &file) override |
| | Checks whether this factory can read the specified file.
|
| FactoryOptions | defaultReadOptions (const FactoryParameters &file) const override |
| | Returns the default read options for the given file.
|
| 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.
|
| 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 String | getIcon (const File &file) override |
| | Returns the icon name associated with a given file.
|
| virtual void | getSupportedFormats (Buffer< FileFormat > &formats, bool is_read) override |
| | Populates the given buffer with file formats supported by this factory.
|
| virtual void | getSupportedFormats (Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) override |
| | Populates the given buffer with file formats supported for specific models.
|
| 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.
|
| virtual bool | isRecursiveWrite (const FactoryParameters ¶ms) const |
| | Checks whether writing should recurse into child models.
|
| virtual bool | readFile (FactoryParameters ¶meters) override |
| | Reads an ASCII file and populates design objects from the parsed data.
|
| virtual bool | writeFile (FactoryParameters ¶meters) override |
| | Writes design objects to an ASCII 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.
|
| | IOFactory (const StringView &factory_name) |
| | Constructs an IOFactory with the given factory name.
|
| virtual | ~IOFactory () |
| | Virtual destructor.
|
| virtual bool | canRead (const File &file) |
| | Checks whether this factory can read the given file.
|
| virtual bool | canRead (const FileFormat &file) |
| | Checks whether this factory can read the given file format.
|
| virtual bool | canWrite (const FactoryParameters &file) |
| | Checks whether this factory can write using the given FactoryParameters.
|
| virtual bool | canWrite (const File &file) |
| | Checks whether this factory can write the given file.
|
| virtual bool | canWrite (const FileFormat &file) |
| | Checks whether this factory can write the given file format.
|
| virtual bool | determineExtension (const File &file, String &extension) |
| | Attempts to determine the file extension for the given file.
|
| String | factoryReadAppFeature () const |
| | Returns the application feature string required for read operations.
|
| String | factoryWriteAppFeature () const |
| | Returns the application feature string required for write operations.
|
| void | getSupportedFormats (Buffer< FileFormat > &formats) |
| | Populates the given buffer with all supported file formats (both read and write).
|
| virtual void | getSupportedFormats (Buffer< FileFormat > &formats, const File &file) |
| | Populates the given buffer with formats supported for the specified file.
|
| virtual void | getSupportedFormatsForExtension (Buffer< FileFormat > &formats, bool is_read, const StringView &extension) |
| | Populates the given buffer with formats matching a specific file extension.
|
| virtual bool | isAutoEnabled () const |
| | Checks whether this factory is automatically enabled without requiring a password.
|
| virtual bool | isFactoryEnabled (bool is_read) const |
| | Checks whether this factory is enabled for reading or writing.
|
| const String & | name () const |
| | Returns the name of this factory.
|
| Buffer< UUID > | readFileWithDefaultSettings (const File &file, DesignObjectLookup *lookup) |
| | Reads a file using default settings and returns the UUIDs of the created models.
|
| Buffer< Scene > | readScenesFromFile (const File &file) |
| | Reads scenes from a file and returns them as a buffer of Scene objects.
|
| void | throwIfNotEnabled (bool is_read) |
| | Throws an exception if the factory is not enabled for the given operation direction.
|
| virtual bool | updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options) |
| | Updates the factory parameters from a file, comparing against old options.
|
| bool | writeScenesToFile (const File &file, const Buffer< Scene > &scene) |
| | Writes a buffer of scenes to a file.
|
|
| static DesignParameter | NoneParameter () |
| | Returns a DesignParameter representing a "none" or empty column mapping.
|
| static FileFormat | PointFormat () |
| | Returns the FileFormat descriptor for ASCII point files.
|
| static ASCIIPointOptions | ReadPoints (FactoryParameters ¶meters, Model &root, Buffer< DesignParameter > ¶ms) |
| | Reads point data from an ASCII file into a model and populates parameter mappings.
|
| 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.
|
| static void | EnableExtension (const StringView &extension, const StringView &read_password, const StringView &write_password) |
| | Enables a specific file extension with the given read and write passwords.
|
| static void | EnableFactory (const StringView &factory, const StringView &read_password, const StringView &write_password) |
| | Enables a factory by name with the given read and write passwords.
|
| static void | EnableFactory (IOFactory *factory, const StringView &read_password, const StringView &write_password) |
| | Registers an IOFactory instance with the system, enabling it for read and/or write.
|
Writes and reads points of data to and from a plain-text file based on FactoryOptions.
AsciiFactory allows for defining multiple columns of data to be streamed out to a text file. It supports configurable column mappings, delimiters, and header rows, making it suitable for generic CSV, TXT, and other delimited point-cloud or tabular data formats.
- See also
- IOFactory, AsciiOptions, AsciiDeploymentFactory, AsciiMeasurementFactory
Definition at line 54 of file AsciiFactory.h.