Esempio n. 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;
}
Esempio n. 2
0
int CBaseDoor::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 3
0
int CBaseButton::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 4
0
int CFuncTankControls::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 5
0
int CFuncTrackChange::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 6
0
int CFuncPlatRot::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 7
0
int CEnvExplosion::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 8
0
int CBaseAnimating::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 9
0
int CPendulum::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 10
0
int CFuncRotating::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 11
0
int CEnvSpark::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 12
0
int CMomentaryRotButton::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 13
0
int CMultiSource::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 14
0
int CEnvGlobal::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 15
0
int CMomentaryDoor::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 16
0
int CLight::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 17
0
int CFuncMortarField::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 18
0
int CRuleEntity::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 19
0
void NewStateExternalFunctions::Save(const void *ptr, size_t size, const char *name)
{
	Save_(ptr, size, name);
}
Esempio n. 20
0
int CGameText::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 21
0
int CBasePlatTrain::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 22
0
int CGamePlayerZone::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 23
0
int CFuncTrackTrain::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 24
0
int CBaseDelay::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 25
0
int CGunTarget::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 26
0
int CBaseToggle::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 27
0
int CFuncTank::Save(CSave &save)
{
	return Save_(save);
}
Esempio n. 28
0
int CRecharge::Save(CSave &save)
{
    return Save_(save);
}