API Documentation
Loading...
Searching...
No Matches
LandXMLFactory.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: LandXMLFactory
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/IOFactory.h>
34#include <NDEVR/File.h>
35namespace NDEVR
36{
37 class Model;
38 class Log;
39 class FactoryFeatures;
40 /**--------------------------------------------------------------------------------------------------
41 \brief writes and reads to a LandXML file: http://www.landxml.org/About.aspx
42
43 The goal of the LandXML format is to specify an XML file format for civil
44 engineering design and survey measurement data for the purposes of:
45 1) Transferring engineering design data between producers and consumers.
46 2) Providing a data format suitable for long - term data archival.
47 3) Providing a standard format for electronic design submission.
48 **/
50 {
51 public:
53 private:
54 virtual void getSupportedFormats(Buffer<FileFormat>& formats, bool is_read) override;
55 virtual String getIcon(const File& file) override;
56 virtual bool readFile(FactoryParameters& file) override;
57 virtual bool canRead(const File& file) override;
58 virtual bool writeFile(FactoryParameters&) override { return false; };
59 FactoryOptions defaultReadOptions(const FactoryParameters& file) const override;
60 FactoryFeatures factoryFeatures(const FactoryParameters& file, bool is_import) const override;
61 };
62};
#define NDEVR_FACTORY_API
Definition DLLInfo.h:57
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
Definition FactoryFeatures.h:44
User-defined options that define preferences for importing and exporting using IOFactory objects.
Definition FactoryOptions.h:49
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
A service that provides Import/Export functionality for a model heirarchy. These can be registered wi...
Definition IOFactory.h:117
writes and reads to a LandXML file: http://www.landxml.org/About.aspx
Definition LandXMLFactory.h:50
NDEVR_FACTORY_API LandXMLFactory()
The core String class for the NDEVR API.
Definition String.h:69
Definition ACIColor.h:37
A container of input information that is to be filled with output information by an IOFactory.
Definition IOFactory.h:61