first commit

This commit is contained in:
2026-03-05 13:16:26 +01:00
commit 1b2bf174e8
164 changed files with 35594 additions and 0 deletions

142
Lab6/pstream.h Normal file
View File

@@ -0,0 +1,142 @@
//## begin module.cm preserve=no
// %X% %Q% %Z% %W%
//## end module.cm
//## begin module.cp preserve=no
//## end module.cp
//## Module: PStream; Pseudo Package specification
//## Subsystem: Figures
//## Source file: PStream.h
#ifndef PStream_h
#define PStream_h 1
//## begin module.additionalIncludes preserve=no
//## end module.additionalIncludes
//## begin module.includes preserve=yes
#include "str.h"
#include <fstream.h>
//## end module.includes
// PsMap
#include "PsMap.h"
// Persistent
#include "Prsstent.h"
// fstream
//#include "fstream.h"
//## begin module.additionalDeclarations preserve=yes
#define RESTORE_SIZE 100
//## end module.additionalDeclarations
//## Class: PStream
//## Category: Persist
//## Subsystem: Figures
//## Persistence: Transient
//## Cardinality/Multiplicity: n
//## Uses: <unnamed>; Persistent { -> }
class PStream : public fstream //## Inherits: <unnamed>
{
//## begin PStream.initialDeclarations preserve=yes
//## end PStream.initialDeclarations
public:
//## Constructors (generated)
PStream();
//## Destructor (generated)
~PStream();
//## Other Operations (specified)
//## Operation: load%940866982
void load (char* filename);
//## Operation: save%940866983
void save (char* filename);
//## Operation: close%940866984
void close ();
//## Operation: isSaving%940866985
bool isSaving ();
//## Operation: archive%940866986
void archive (Persistent*& x);
//## Operation: find%940866987