DATAKIT API  V2025.3
dtk_CreoviewReader.hpp
Go to the documentation of this file.
1 #ifndef _UTIL_CRV_READER_HPP_
2 #define _UTIL_CRV_READER_HPP_
3 #include "def/define.h"
5 #include "util/dtk_graphical.hpp"
7 #include "util/dtk_reader.hpp"
8 #include "util/error_dtk.hpp"
9 #include "util/util_ptr_dtk.hpp"
10 #include "util/util_stl_dtk.hpp"
11 
12 
13 
14 class CreoviewReader : public Dtk_Reader
15 {
16 protected:
17  struct Dtk_Handle; // Not defined here
18  Dtk_Handle * m_Private; // Handle
20 
21  //Mandatory
22 public:
23  virtual ~CreoviewReader();
25 
27  static Dtk_bool Enable();
28 
30  Dtk_MainDocPtr& outDocument );
31  Dtk_ErrorStatus GetFileVersion( const Dtk_string &inInputFile, Dtk_string& outVersion );
33  const Dtk_string& inInputFile,
34  Dtk_MainDocPtr& inoutDocument,
35  Dtk_ComponentPtr& outRootComponent );
36  Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr >& inArrayStream, Dtk_MainDocPtr& inoutDocument, Dtk_ComponentPtr& outRootComponent );
38 
40  const Dtk_ComponentPtr& inComponent,
41  Dtk_NodePtr& outRootNode );
43 
48  const Dtk_string &inEntityName,
49  Dtk_ObjectPtr &outEntity );
50 
53 
56 
58 
59  //Mandatory
60 };
61 #endif
62 
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:689
CreoviewReader::ReadAdditionalInfos
Dtk_ErrorStatus ReadAdditionalInfos(const Dtk_ID &inEntityID, const Dtk_string &inEntityName, Dtk_ObjectPtr &outEntity)
CreoviewReader::EndComponent
Dtk_ErrorStatus EndComponent(Dtk_ComponentPtr &inComponent)
CreoviewReader::EndPopulateComponentsTree
Dtk_ErrorStatus EndPopulateComponentsTree()
CreoviewReader::CreateDocument
Dtk_ErrorStatus CreateDocument(const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
CreoviewReader
Definition: dtk_CreoviewReader.hpp:15
Dtk_Reader
Definition: dtk_reader.hpp:15
CreoviewReader::ReadComponentGraphic
Dtk_ErrorStatus ReadComponentGraphic(const Dtk_ComponentPtr &inComponent, Dtk_GraphicalDataPtr &outGraphicalData)
CreoviewReader::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
CreoviewReader::~CreoviewReader
virtual ~CreoviewReader()
CreoviewReader::ReadComponent
Dtk_ErrorStatus ReadComponent(const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
Dtk_bool
char Dtk_bool
Definition: define.h:725
CreoviewReader::ReadEntity
Dtk_ErrorStatus ReadEntity(Dtk_Node &inNode, Dtk_EntityPtr &outEntity)
CreoviewReader::ActivateReader
Dtk_ErrorStatus ActivateReader()
dtk_graphical.hpp
CreoviewReader::GetAssociatedEntities
Dtk_ErrorStatus GetAssociatedEntities(Dtk_Node &inNode, Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
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_maindoc_ptr.hpp
error_dtk.hpp
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
CreoviewReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr > &inArrayStream, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
CreoviewReader::CreoviewReader
CreoviewReader()
CreoviewReader::Enable
static Dtk_bool Enable()
util_stl_dtk.hpp
CreoviewReader::m_Private
Dtk_Handle * m_Private
Definition: dtk_CreoviewReader.hpp:17
util_ptr_dtk.hpp
CreoviewReader::_UniqueReader
static CreoviewReader * _UniqueReader
Definition: dtk_CreoviewReader.hpp:19
define.h
CreoviewReader::GetConnectorsPointingToThisComponent
Dtk_ErrorStatus GetConnectorsPointingToThisComponent(Dtk_Component &inCompo, Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities)
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:85
CreoviewReader::GetCreoviewReader
static CreoviewReader * GetCreoviewReader()
CreoviewReader::GetVersion
Dtk_Int32 GetVersion()
Dtk_Component
This is the Component Class. The Dtk_ComponentPtr object is used as element into an assembly tree....
Definition: dtk_maindoc.hpp:563
dtk_string.hpp
CreoviewReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
dtk_reader.hpp
CreoviewReader::DesactivateReader
Dtk_ErrorStatus DesactivateReader()
CreoviewReader::ReadAdditionalInfos
Dtk_ErrorStatus ReadAdditionalInfos(Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)