//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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; }
int CBaseDoor::Save(CSave &save) { return Save_(save); }
int CBaseButton::Save(CSave &save) { return Save_(save); }
int CFuncTankControls::Save(CSave &save) { return Save_(save); }
int CFuncTrackChange::Save(CSave &save) { return Save_(save); }
int CFuncPlatRot::Save(CSave &save) { return Save_(save); }
int CEnvExplosion::Save(CSave &save) { return Save_(save); }
int CBaseAnimating::Save(CSave &save) { return Save_(save); }
int CPendulum::Save(CSave &save) { return Save_(save); }
int CFuncRotating::Save(CSave &save) { return Save_(save); }
int CEnvSpark::Save(CSave &save) { return Save_(save); }
int CMomentaryRotButton::Save(CSave &save) { return Save_(save); }
int CMultiSource::Save(CSave &save) { return Save_(save); }
int CEnvGlobal::Save(CSave &save) { return Save_(save); }
int CMomentaryDoor::Save(CSave &save) { return Save_(save); }
int CLight::Save(CSave &save) { return Save_(save); }
int CFuncMortarField::Save(CSave &save) { return Save_(save); }
int CRuleEntity::Save(CSave &save) { return Save_(save); }
void NewStateExternalFunctions::Save(const void *ptr, size_t size, const char *name) { Save_(ptr, size, name); }
int CGameText::Save(CSave &save) { return Save_(save); }
int CBasePlatTrain::Save(CSave &save) { return Save_(save); }
int CGamePlayerZone::Save(CSave &save) { return Save_(save); }
int CFuncTrackTrain::Save(CSave &save) { return Save_(save); }
int CBaseDelay::Save(CSave &save) { return Save_(save); }
int CGunTarget::Save(CSave &save) { return Save_(save); }
int CBaseToggle::Save(CSave &save) { return Save_(save); }
int CFuncTank::Save(CSave &save) { return Save_(save); }
int CRecharge::Save(CSave &save) { return Save_(save); }