DATAKIT API  V2025.1
dtk_JtReader.hpp
Go to the documentation of this file.
1 /**********************************************************
2  Dtk_JtrReader.hpp
3 ***********************************************************/
4 #ifndef _DTK_JT_READER_H_
5 #define _DTK_JT_READER_H_
6 
7 class JtReader: public Dtk_Reader
8 {
9 protected :
10  void* _j;
11  void _Init();
12  void _Reset();
13 public :
14  virtual ~JtReader();
16 
17  static Dtk_bool Enable();
18  Dtk_ErrorStatus CreateDocument(const Dtk_string& inInputFile, Dtk_MainDocPtr& outDocument);
20  Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string& inInputFile,Dtk_MainDocPtr& inoutDocument,Dtk_ComponentPtr& outRootComponent);
21  Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr >& inArrayStream, Dtk_MainDocPtr& inoutDocument, Dtk_ComponentPtr& outRootComponent );
23 
24  Dtk_ErrorStatus ReadComponent(const Dtk_ComponentPtr& inComponent,Dtk_NodePtr& outRootNode);
26  Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string& outVersion);
34 
35 // configuration
36  // activate semantic reading (1) or keep graphical representation of PMI (0 : default)
37  static Dtk_ErrorStatus ActivateSemanticPMI(int activate = 1);
38 } ;
39 
40 // depracated
41 //Dtk_ErrorStatus Jtr_BuildSemanticFDT(const Dtk_FdtPtr& inFdt,Dtk_FdtPtr& outFdt);
42 
43 #endif
44 
JtReader::_Reset
void _Reset()
JtReader::Enable
static Dtk_bool Enable()
JtReader::DesactivateReader
Dtk_ErrorStatus DesactivateReader()
Dtk_Reader
Definition: dtk_reader.hpp:15
JtReader::ReadAdditionalInfos
Dtk_ErrorStatus ReadAdditionalInfos(Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
JtReader::ReadComponent
Dtk_ErrorStatus ReadComponent(const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
JtReader::JtReader
JtReader()
JtReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr > &inArrayStream, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
JtReader::ActivateSemanticPMI
static Dtk_ErrorStatus ActivateSemanticPMI(int activate=1)
JtReader::ReadComponentGraphic
Dtk_ErrorStatus ReadComponentGraphic(const Dtk_ComponentPtr &inComponent, Dtk_GraphicalDataPtr &ouGraphicalData)
Dtk_bool
char Dtk_bool
Definition: define.h:725
JtReader::ReadEntity
Dtk_ErrorStatus ReadEntity(Dtk_Node &inNode, Dtk_EntityPtr &outEntity)
JtReader::_j
void * _j
Definition: dtk_JtReader.hpp:10
JtReader::_Init
void _Init()
JtReader::GetVersion
Dtk_Int32 GetVersion()
JtReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
JtReader::EndComponent
Dtk_ErrorStatus EndComponent(Dtk_ComponentPtr &inComponent)
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
JtReader::~JtReader
virtual ~JtReader()
JtReader
Definition: dtk_JtReader.hpp:8
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
JtReader::GetConnectorsPointingToThisComponent
Dtk_ErrorStatus GetConnectorsPointingToThisComponent(Dtk_Component &inCompo, Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities)
JtReader::ActivateReader
Dtk_ErrorStatus ActivateReader()
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:85
JtReader::GetAssociatedEntities
Dtk_ErrorStatus GetAssociatedEntities(Dtk_Node &inNode, Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
JtReader::EndPopulateComponentsTree
Dtk_ErrorStatus EndPopulateComponentsTree()
Dtk_Component
This is the Component Class. The Dtk_ComponentPtr object is used as element into an assembly tree....
Definition: dtk_maindoc.hpp:563
JtReader::GetFileVersion
Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string &outVersion)
JtReader::CreateDocument
Dtk_ErrorStatus CreateDocument(const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)