DATAKIT API  V2025.1
dtk_CreoviewReader.hpp
Go to the documentation of this file.
1 #ifndef _UTIL_CRV_READER_HPP_
2 #define _UTIL_CRV_READER_HPP_
3 
4 
5 
6 class CreoviewReader : public Dtk_Reader
7 {
8 protected:
9  struct Dtk_Handle; // Not defined here
10  Dtk_Handle * m_Private; // Handle
12 
13  //Mandatory
14 public:
15  virtual ~CreoviewReader();
17 
19  static Dtk_bool Enable();
20 
22  Dtk_MainDocPtr& outDocument );
23  Dtk_ErrorStatus GetFileVersion( const Dtk_string &inInputFile, Dtk_string& outVersion );
25  const Dtk_string& inInputFile,
26  Dtk_MainDocPtr& inoutDocument,
27  Dtk_ComponentPtr& outRootComponent );
28  Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr >& inArrayStream, Dtk_MainDocPtr& inoutDocument, Dtk_ComponentPtr& outRootComponent );
30 
32  const Dtk_ComponentPtr& inComponent,
33  Dtk_NodePtr& outRootNode );
35 
40  const Dtk_string &inEntityName,
41  Dtk_ObjectPtr &outEntity );
42 
45 
48 
50 
51  //Mandatory
52 };
53 #endif
54 
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:7
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()
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_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()
CreoviewReader::m_Private
Dtk_Handle * m_Private
Definition: dtk_CreoviewReader.hpp:9
CreoviewReader::_UniqueReader
static CreoviewReader * _UniqueReader
Definition: dtk_CreoviewReader.hpp:11
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
CreoviewReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
CreoviewReader::DesactivateReader
Dtk_ErrorStatus DesactivateReader()
CreoviewReader::ReadAdditionalInfos
Dtk_ErrorStatus ReadAdditionalInfos(Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)