Iray SDK API nvidia_logo_transpbg.gif Up
iimporter.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_IIMPORTER_H
8#define MI_NEURAYLIB_IIMPORTER_H
9
12
13namespace mi {
14
15class IMap;
16
17namespace neuraylib {
18
19class IImpexp_state;
20class IImport_result;
21class IReader;
22class ITransaction;
23
29class IImporter :
30 public base::Interface_declare<0x1288a8b7,0x13ba,0x4010,0xb9,0x0c,0xbc,0xf5,0xca,0x49,0x70,0xdd,
31 neuraylib::IImpexp_base>
32{
33public:
47 virtual bool test_file_type(const char* extension, const IReader* reader) const = 0;
48
50
75 ITransaction* transaction,
76 const char* extension,
77 IReader* reader,
78 const IMap* importer_options,
79 IImpexp_state* state) const = 0;
80};
81 // end group mi_neuray_impexp
83
84} // namespace neuraylib
85
86} // namespace mi
87
88#endif // MI_NEURAYLIB_IIMPORTER_H
This interface represents maps, i.e., a key-value based data structure.
Definition: imap.h:41
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
This interface represents states that are passed to recursive calls of importers and exporters.
Definition: iimpexp_state.h:36
This interface represents the result of an import operation.
Definition: iimport_result.h:44
Abstract interface for importers.
Definition: iimporter.h:32
virtual bool test_file_type(const char *extension, const IReader *reader) const =0
Indicates whether the importer can handle the file type.
virtual IImport_result * import_elements(ITransaction *transaction, const char *extension, IReader *reader, const IMap *importer_options, IImpexp_state *state) const =0
Imports a scene via a reader.
A reader supports binary block reads and string-oriented line reads that zero-terminate the result.
Definition: ireader.h:27
A transaction provides a consistent view on the database.
Definition: itransaction.h:81
virtual bool test_file_type(const char *extension) const =0
Indicates whether a file name extension is supported.
Abstract base interface common for importers and exporters.
Mixin class template for deriving new interface declarations.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: neuraylib.h:179