next up previous
Objektpersistenz und ERZEUGER-Pattern


Definition der IOFactory-Klasse

 
// File: IOFactry.h

#ifndef IOFactory_h
#define IOFactory_h 1

#include <stl.h>
#include <String.h>
#include <bool.h>
#include <fstream.h>
#include <AbstFcry.h>

class IOFactory : public AbstractFactory
{
private:
// ...
  bool deleteStreams;
  istream* pIStream;
  ostream* pOStream;
  IOFactory(const IOFactory&); // not allowed!
  IOFactory& operator=(const IOFactory&);

public:
// ...
  virtual ~IOFactory();
  virtual GeoObj* CreateGeoObj();
  virtual GeoObj* CreateGeoObj(const String&);
  virtual operator void*() const;
  virtual void CollectGeoObj(GeoObj*&);
};

#endif


next up previous