API Documentation
Loading...
Searching...
No Matches
DWGFactory.h
Go to the documentation of this file.
1/**--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: IOFactory
28File: DWGFactory
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
36namespace NDEVR
37{
38 class DWGFactory : public IOFactory
39 {
40 public:
42 protected:
43 virtual void getSupportedFormats(Buffer<FileFormat>& formats, bool is_read) override;
44 virtual bool readFile(FactoryParameters& file) override;
45 virtual bool writeFile(FactoryParameters& file) override;
46 FactoryOptions defaultReadOptions(const FactoryParameters& file) const override;
47 FactoryOptions defaultWriteOptions(const FactoryParameters& file) const override;
48 FactoryFeatures factoryFeatures(const FactoryParameters& file, bool is_import) const override;
49 bool canRead(const FactoryParameters& file) override;
50 static INIFactory INI();
51 static File FindODAPath();
52 static File CurrentODAPath();
53 static void SetODAPath(const File& file);
54 static void DownloadDWGTools();
55 static bool NeedsToDownloadDWGTools();
56 static bool SupportsODA();
57 protected:
59 static bool s_is_valid;
60 };
61}
#define NDEVR_CAD_API
Definition DLLInfo.h:79
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition DWGFactory.h:39
virtual bool writeFile(FactoryParameters &file) override
Definition DWGFactory.cpp:160
static File s_oda_path
Definition DWGFactory.h:58
static void DownloadDWGTools()
Definition DWGFactory.cpp:267
static void SetODAPath(const File &file)
Definition DWGFactory.cpp:248
FactoryOptions defaultReadOptions(const FactoryParameters &file) const override
Definition DWGFactory.cpp:187
FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const override
Definition DWGFactory.cpp:195
NDEVR_CAD_API DWGFactory()
Definition DWGFactory.cpp:32
static File CurrentODAPath()
Definition DWGFactory.cpp:244
virtual bool readFile(FactoryParameters &file) override
Definition DWGFactory.cpp:125
static bool NeedsToDownloadDWGTools()
Definition DWGFactory.cpp:279
static File FindODAPath()
Definition DWGFactory.cpp:224
virtual void getSupportedFormats(Buffer< FileFormat > &formats, bool is_read) override
Definition DWGFactory.cpp:35
bool canRead(const FactoryParameters &file) override
Definition DWGFactory.cpp:200
static INIFactory INI()
Definition DWGFactory.cpp:261
FactoryOptions defaultWriteOptions(const FactoryParameters &file) const override
Definition DWGFactory.cpp:191
static bool s_is_valid
Definition DWGFactory.h:59
static bool SupportsODA()
Definition DWGFactory.cpp:271
Definition FactoryFeatures.h:40
Definition FactoryOptions.h:46
Definition File.h:47
Definition INIReader.h:57
Definition IOFactory.h:99
Definition ACIColor.h:37
Definition IOFactory.h:56