DATAKIT API  V2025.1
dtk_RnXmlReader.hpp
Go to the documentation of this file.
1 #ifndef _DTK_RNXML_READER_H_
2 #define _DTK_RNXML_READER_H_
3 
5 {
11 };
12 
13 class RnXmlReader: public Dtk_Reader
14 {
15 protected:
16  struct Dtk_Handle; // Not defined here
17  Dtk_Handle *_Private; // Handle
18 
19  void _Init();
20  void _Reset();
21 
24 
27 
28  Dtk_ErrorStatus _SetOutputFile(const Dtk_string & inOutputFileName);
30 
31 
32 
33 public:
35  virtual ~RnXmlReader();
36 
37  static Dtk_bool Enable();
38  Dtk_ErrorStatus CreateDocument( const Dtk_string &inInputFile, Dtk_MainDocPtr& outDocument );
39  Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string& outVersion);
40  Dtk_ErrorStatus PopulateComponentsTree( const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent );
41  Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr >& inArrayStream, Dtk_MainDocPtr& inoutDocument, Dtk_ComponentPtr& outRootComponent );
43  Dtk_ErrorStatus ReadComponent( const Dtk_ComponentPtr &inComponent, Dtk_NodePtr& outRootNode );
50 
51 
52 };
53 
54 #endif
55 
RnXmlModelType
@ RnXmlModelType
Definition: dtk_RnXmlReader.hpp:7
RnXmlReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr > &inArrayStream, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
RnXmlReader
Definition: dtk_RnXmlReader.hpp:14
RnXmlReader::_SetRootComponent
Dtk_ErrorStatus _SetRootComponent(const Dtk_ComponentPtr &inComponent)
RnXmlReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
RnXmlReader::_GetOutputFile
Dtk_string & _GetOutputFile() const
RnXmlReader::Enable
static Dtk_bool Enable()
RnXmlStepType
@ RnXmlStepType
Definition: dtk_RnXmlReader.hpp:10
Dtk_Reader
Definition: dtk_reader.hpp:15
RnXmlReader::DesactivateReader
Dtk_ErrorStatus DesactivateReader()
RnXmlReader::_Init
void _Init()
RnXmlReader::GetFileVersion
Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string &outVersion)
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
RnXmlReader::_SetOutputFile
Dtk_ErrorStatus _SetOutputFile(const Dtk_string &inOutputFileName)
RnXmlReader::~RnXmlReader
virtual ~RnXmlReader()
RnXmlReader::ActivateReader
Dtk_ErrorStatus ActivateReader()
Dtk_bool
char Dtk_bool
Definition: define.h:725
RnXmlReader::CreateDocument
Dtk_ErrorStatus CreateDocument(const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
RnXmlReader::_Reset
void _Reset()
RnXmlReader::GetVersion
Dtk_Int32 GetVersion()
RnXmlUnknownType
@ RnXmlUnknownType
Definition: dtk_RnXmlReader.hpp:6
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
RnXmlReader::ReadAdditionalInfos
Dtk_ErrorStatus ReadAdditionalInfos(Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
RnXmlReader::_GetCompoType
RnXmlCompoTypeEnum & _GetCompoType() const
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
RnXmlReader::ReadEntity
Dtk_ErrorStatus ReadEntity(Dtk_Node &inNode, Dtk_EntityPtr &outEntity)
RnXmlReader::EndComponent
Dtk_ErrorStatus EndComponent(Dtk_ComponentPtr &inComponent)
RnXmlReader::RnXmlReader
RnXmlReader()
RnXmlReader::_SetCompoType
Dtk_ErrorStatus _SetCompoType(const RnXmlCompoTypeEnum &inCompoType)
RnXmlMixteType
@ RnXmlMixteType
Definition: dtk_RnXmlReader.hpp:9
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:85
RnXmlReader::EndPopulateComponentsTree
Dtk_ErrorStatus EndPopulateComponentsTree()
RnXmlReader::_Private
Dtk_Handle * _Private
Definition: dtk_RnXmlReader.hpp:16
RnXmlCompoTypeEnum
RnXmlCompoTypeEnum
Definition: dtk_RnXmlReader.hpp:5
RnXmlCatpartType
@ RnXmlCatpartType
Definition: dtk_RnXmlReader.hpp:8
RnXmlReader::_GetRootComponent
Dtk_ComponentPtr & _GetRootComponent() const
RnXmlReader::ReadComponent
Dtk_ErrorStatus ReadComponent(const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)