5 #ifndef _MGOfstream_HH_
6 #define _MGOfstream_HH_
12 #include "mg/Pvector.h"
33 typedef std::map<const MGGel*, long> MGOutPtrMap;
34 typedef std::map<const MGGel*, long>::iterator mapitr;
49 MGOfstream(
const TCHAR* file,
bool map_clear=
true);
93 long find(
const MGGel* ptr);
101 bool insert(
const MGGel* ptr,
long pid);
108 int open(
const TCHAR* file,
bool map_clear=
true);
117 MGOfstream& writenChar(
const char* ps,
int n);
123 long WritePointer(
const MGGel* obj);
131 void write(
const void* ps,
int n);
MGOfstream & operator<<(unsigned int un)
Definition: Ofstream.h:76
MGOfstream & operator<<(unsigned short us)
Definition: Ofstream.h:74
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
Is an abstract class which represents a whole geometry and a topology.
Definition: Object.h:42
MGOfstream & operator<<(unsigned char uch)
Definition: Ofstream.h:71
MGOfstream & operator<<(short s)
Definition: Ofstream.h:73
MGOfstream & operator<<(float f)
Definition: Ofstream.h:79
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
MGOfstream & operator<<(double d)
Definition: Ofstream.h:80
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
MGOfstream & operator<<(unsigned long ul)
Definition: Ofstream.h:78
MGOfstream & operator<<(long l)
Definition: Ofstream.h:77
MGOfstream & operator<<(int n)
Definition: Ofstream.h:75
MGOfstream & operator<<(signed char sch)
Definition: Ofstream.h:72
MGGroup is a class which constains MGGel elements.
Definition: Group.h:35
void set_map_clear(bool map_clear)
Set map_clear flag.
Definition: Ofstream.h:111
std::ofstream * m_file
Definition: Ofstream.h:40
MGOfstream & operator<<(char ch)
基本型のファイル出力関数
Definition: Ofstream.h:70