34#include <NDEVR/FactoryOptions.h>
35#include <NDEVR/Model.h>
36#include <NDEVR/File.h>
37#include <NDEVR/FileFormat.h>
43 class DesignObjectLookup;
44 class FactoryFeatures;
63 requests.add(name, request);
67 return requests.get(name).format;
71 return requests.get(name).format;
75 return requests.
get(name).file;
82 if (models.contains(m.
uuid()))
114 virtual bool isFactoryEnabled(
bool is_read)
const;
115 virtual bool canRead(
const File& file);
116 virtual bool determineExtension(
const File& file,
String& extension);
117 virtual bool canWrite(
const File& file);
118 virtual bool isAutoEnabled()
const;
123 virtual bool canWrite(
const FileFormat& file);
129 String factoryReadAppFeature()
const;
130 String factoryWriteAppFeature()
const;
131 void throwIfNotEnabled(
bool is_read);
132 static void EnableFactory(
IOFactory* factory,
const String& read_password,
const String& write_password);
133 static void EnableFactory(
const String& factory,
const String& read_password,
const String& write_password);
134 static void EnableExtension(
const String& extension,
const String& read_password,
const String& write_password);
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
decltype(auto) get(t_index_type index)
Definition Buffer.hpp:857
bool isValid() const
Definition DesignObject.h:362
UUID uuid() const
Definition DesignObject.cpp:533
Definition DesignObjectLookup.h:61
Definition Dictionary.h:48
Definition FactoryFeatures.h:40
Definition FactoryOptions.h:46
Definition IOFactory.h:99
virtual FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const =0
const String & name() const
Definition IOFactory.h:103
virtual void getSupportedFormats(Buffer< FileFormat > &formats, bool is_read)=0
Definition ModelFactory.h:39
Model getParent() const
Definition Model.cpp:2057
Definition ProgressInfo.hpp:43
Definition TranslatedString.h:9
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition BaseValues.hpp:272
Definition IOFactory.h:56
Buffer< UUID > models
Definition IOFactory.h:92
const File & file(const String &name="default") const
Definition IOFactory.h:73
bool shouldWriteModel(const Model &model) const
Definition IOFactory.h:77
FactoryParameters(const FileRequest &request, const String &name="default")
Definition IOFactory.h:61
const FileFormat & format(const String &name="default") const
Definition IOFactory.h:65
FactoryParameters(const File &file, const FileFormat &format, const String &name="default")
Definition IOFactory.h:57
FileFormat & format(const String &name="default")
Definition IOFactory.h:69
FactoryOptions options
Definition IOFactory.h:90
Dictionary< String, FileRequest > requests
Definition IOFactory.h:89
Buffer< FileFactoryWarning > warnings
Definition IOFactory.h:91
Buffer< UUID > cameras
Definition IOFactory.h:93
Definition IOFactory.h:46
TranslatedString message
Definition IOFactory.h:53
FileFactoryWarning(const TranslatedString &title, const TranslatedString &message)
Definition IOFactory.h:47
TranslatedString title
Definition IOFactory.h:52
Definition FileFormat.h:67