Exemple #1
0
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
void Save_Base(TProgType aProgType, AnsiString aFileName, TTreeView *tv1, TTreeView *tv2, TTreeView *tv3, TTreeView *tv4)
{
      TFileStream* FileStream;
 // -------------
      try {
          FileStream = new TFileStream(aFileName, fmCreate);
      } catch ( ... ) {
          MessageBox(NULL, " Невозможно записать файл 'Estimate.dat' \n\n Данные на диск не будут записаны", " Ошибка записи файла ...", MB_ICONERROR);
          return;
      }
 // -------------

      int FileVersion = 21;
      FileStream->Write(&DataFileDescription1, DataFileDescription1[0] + 1);
      FileStream->Write(&DataFileDescription2, DataFileDescription2[0] + 1);
      FileStream->Write(&DataFileDescription3, DataFileDescription3[0] + 1);
      FileStream->Write(&DataFileDescription4, DataFileDescription4[0] + 1);
      FileStream->Write(&DataFileDescription5, DataFileDescription5[0] + 1);
      FileStream->Write(&FileVersion         , sizeof(FileVersion));
 // -------------
      Save_(FileStream, aProgType, tv1, &GlobalElementCounter);
      Save_(FileStream, aProgType, tv2, &GlobalMaterialCounter);
      Save_(FileStream, aProgType, tv3, &GlobalMashineCounter);
      Save_(FileStream, aProgType, tv4, &GlobalEnergoCounter);
 // -------------
      delete FileStream;
}
Exemple #2
0
int CBaseDoor::Save(CSave &save)
{
	return Save_(save);
}
Exemple #3
0
int CBaseButton::Save(CSave &save)
{
	return Save_(save);
}
int CFuncTankControls::Save(CSave &save)
{
	return Save_(save);
}
Exemple #5
0
int CFuncTrackChange::Save(CSave &save)
{
	return Save_(save);
}
Exemple #6
0
int CFuncPlatRot::Save(CSave &save)
{
	return Save_(save);
}
Exemple #7
0
int CEnvExplosion::Save(CSave &save)
{
	return Save_(save);
}
Exemple #8
0
int CBaseAnimating::Save(CSave &save)
{
	return Save_(save);
}
Exemple #9
0
int CPendulum::Save(CSave &save)
{
	return Save_(save);
}
Exemple #10
0
int CFuncRotating::Save(CSave &save)
{
	return Save_(save);
}
Exemple #11
0
int CEnvSpark::Save(CSave &save)
{
	return Save_(save);
}
Exemple #12
0
int CMomentaryRotButton::Save(CSave &save)
{
	return Save_(save);
}
Exemple #13
0
int CMultiSource::Save(CSave &save)
{
	return Save_(save);
}
Exemple #14
0
int CEnvGlobal::Save(CSave &save)
{
	return Save_(save);
}
Exemple #15
0
int CMomentaryDoor::Save(CSave &save)
{
	return Save_(save);
}
Exemple #16
0
int CLight::Save(CSave &save)
{
	return Save_(save);
}
Exemple #17
0
int CFuncMortarField::Save(CSave &save)
{
	return Save_(save);
}
Exemple #18
0
int CRuleEntity::Save(CSave &save)
{
	return Save_(save);
}
Exemple #19
0
void NewStateExternalFunctions::Save(const void *ptr, size_t size, const char *name)
{
	Save_(ptr, size, name);
}
Exemple #20
0
int CGameText::Save(CSave &save)
{
	return Save_(save);
}
Exemple #21
0
int CBasePlatTrain::Save(CSave &save)
{
	return Save_(save);
}
Exemple #22
0
int CGamePlayerZone::Save(CSave &save)
{
	return Save_(save);
}
Exemple #23
0
int CFuncTrackTrain::Save(CSave &save)
{
	return Save_(save);
}
Exemple #24
0
int CBaseDelay::Save(CSave &save)
{
	return Save_(save);
}
Exemple #25
0
int CGunTarget::Save(CSave &save)
{
	return Save_(save);
}
Exemple #26
0
int CBaseToggle::Save(CSave &save)
{
	return Save_(save);
}
Exemple #27
0
int CFuncTank::Save(CSave &save)
{
	return Save_(save);
}
Exemple #28
0
int CRecharge::Save(CSave &save)
{
    return Save_(save);
}