DATAKIT API  V2025.1
dtk_objreader.hpp
Go to the documentation of this file.
1 /**********************************************************
2  DTK_OBJREADER.H
3 ***********************************************************/
4 #ifndef _DTK_OBJREADER_H_
5 #define _DTK_OBJREADER_H_
6 
7 class ObjReadModule;
8 
9 class ObjReader: public Dtk_Reader
10 {
11 public :
12 
14  virtual ~ObjReader();
15  static Dtk_bool Enable();
16 
17  // ==== General inherited actions ====
18 
19  Dtk_ErrorStatus CreateDocument(const Dtk_string& inInputFile, Dtk_MainDocPtr& outDocument);
20  Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string& outVersion);
21 
22 
24  (const Dtk_string& inInputFile,Dtk_MainDocPtr& inoutDocument,Dtk_ComponentPtr& outRootComponent);
25  Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr >& inArrayStream, Dtk_MainDocPtr& inoutDocument, Dtk_ComponentPtr& outRootComponent );
28  (const Dtk_ComponentPtr& inComponent, Dtk_NodePtr& outRootNode);
29 
31 
34 
36 
39 
40 
41 
42 protected :
43 
44  void _Init();
45  void _Reset();
46  //Dtk_ErrorStatus InitReader(const Dtk_string& inInputFile);
47 
48  void _WriteLogFile();
49 private:
50 
51  Dtk_string* Objfile;
52  ObjReadModule *_module;
53 };
54 
55 #endif
ObjReader::Enable
static Dtk_bool Enable()
ObjReader::EndComponent
Dtk_ErrorStatus EndComponent(Dtk_ComponentPtr &inComponent)
ObjReader::ActivateReader
Dtk_ErrorStatus ActivateReader()
ObjReader::GetFileVersion
Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string &outVersion)
ObjReader::CreateDocument
Dtk_ErrorStatus CreateDocument(const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
ObjReader::_Init
void _Init()
ObjReader::GetVersion
Dtk_Int32 GetVersion()
Dtk_Reader
Definition: dtk_reader.hpp:15
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Dtk_bool
char Dtk_bool
Definition: define.h:725
ObjReader::_Reset
void _Reset()
ObjReader::ReadComponent
Dtk_ErrorStatus ReadComponent(const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
ObjReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr > &inArrayStream, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
ObjReader::EndPopulateComponentsTree
Dtk_ErrorStatus EndPopulateComponentsTree()
ObjReader::ObjReader
ObjReader()
ObjReader::_WriteLogFile
void _WriteLogFile()
Dtk_Node
This is the Node Class The Dtk_Node object is used to retrieve informations in a Dtk_ComponentPtr obj...
Definition: dtk_maindoc.hpp:230
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:687
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
ObjReader::~ObjReader
virtual ~ObjReader()
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
ObjReader
Definition: dtk_objreader.hpp:10
ObjReader::ReadEntity
Dtk_ErrorStatus ReadEntity(Dtk_Node &inNode, Dtk_EntityPtr &outEntity)
ObjReader::DesactivateReader
Dtk_ErrorStatus DesactivateReader()
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:85
ObjReader::ReadAdditionalInfos
Dtk_ErrorStatus ReadAdditionalInfos(Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
ObjReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)