MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igesPD.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESPD_H__)
6 #define __MGIGESPD_H__
7 
8 #include "mgiges/Iges.h"
9 
10 // forward declerations
12 class MGIgesParamLine;
13 
15 
17 class MGIgesPD{
18  friend MGIgesDirectoryEntry;
19 
21 public:
23  MGIgesPD();
24 
27 
29  virtual ~MGIgesPD();
30 
32  virtual void read_in(
33  char pDelimeter,
34  std::istringstream& pdstream
35  )=0;
36 
37  void setDE(MGIgesDirectoryEntry* DE){m_DEpointer=DE;};
38  int type_number()const{return m_type_number;};
39  const MGIgesDirectoryEntry* DEpointer()const{return m_DEpointer;};
40  MGIgesDirectoryEntry* DEpointer(){return m_DEpointer;};
41 
48  virtual void write_out_into_string(
49  const MGIgesGSec& gsec,
50  MGPvector<std::string>& plines
51  )const=0;
52 
53 private:
54 //Member data. These are set as public.
55 
56  int m_type_number;
57  MGIgesDirectoryEntry* m_DEpointer;
58 };
59 
60 #endif // __MGIGESPD_H__
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
MGIgesDirectoryEntry describes a directory entry section of an IGES file.
Definition: IgesDirectoryEntry.h:20
int type_number() const
Definition: igesPD.h:38
MGIgesDirectoryEntry * DEpointer()
Definition: igesPD.h:40
MGIgesParamLine describes a line of Parameter Data of an IGES file.
Definition: IgesParamLine.h:15
virtual ~MGIgesPD()
Destructor;.
MGIgesPD is the parent class of all the Parameter data section type.
Definition: igesPD.h:17
void setDE(MGIgesDirectoryEntry *DE)
Definition: igesPD.h:37
virtual void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const =0
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
virtual void read_in(char pDelimeter, std::istringstream &pdstream)=0
Read in parameter data from string stream data.
MGIgesPD()
Constructors.
Defines Vector of newed object pointers.
Definition: Pvector.h:27