16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 03:29:19 +02:00

Format source code using clang-format

This commit is contained in:
Zbigniew Mandziejewicz
2015-04-03 22:00:22 +08:00
parent 91470458b4
commit cb19354db4
99 changed files with 40728 additions and 36059 deletions

View File

@@ -8,41 +8,41 @@ class TGroundNode;
class TTractionPowerSource
{
private:
double NominalVoltage;
double VoltageFrequency;
double InternalRes;
double MaxOutputCurrent;
double FastFuseTimeOut;
int FastFuseRepetition;
double SlowFuseTimeOut;
bool Recuperation;
private:
double NominalVoltage;
double VoltageFrequency;
double InternalRes;
double MaxOutputCurrent;
double FastFuseTimeOut;
int FastFuseRepetition;
double SlowFuseTimeOut;
bool Recuperation;
double TotalCurrent;
double TotalAdmitance;
double TotalPreviousAdmitance;
double OutputVoltage;
bool FastFuse;
bool SlowFuse;
double FuseTimer;
int FuseCounter;
protected:
double TotalCurrent;
double TotalAdmitance;
double TotalPreviousAdmitance;
double OutputVoltage;
bool FastFuse;
bool SlowFuse;
double FuseTimer;
int FuseCounter;
public: //zmienne publiczne
TTractionPowerSource *psNode[2]; //zasilanie na koñcach dla sekcji
bool bSection; //czy jest sekcj¹
TGroundNode *gMyNode; //Ra 2015-03: znowu prowizorka, aby mieæ nazwê do logowania
public:
//AnsiString asName;
__fastcall TTractionPowerSource();
__fastcall ~TTractionPowerSource();
void __fastcall Init(double u,double i);
bool __fastcall Load(cParser *parser);
bool __fastcall Render();
bool __fastcall Update(double dt);
double __fastcall CurrentGet(double res);
void __fastcall VoltageSet(double v) {NominalVoltage=v;};
void __fastcall PowerSet(TTractionPowerSource *ps);
protected:
public: // zmienne publiczne
TTractionPowerSource *psNode[2]; // zasilanie na koñcach dla sekcji
bool bSection; // czy jest sekcj¹
TGroundNode *gMyNode; // Ra 2015-03: znowu prowizorka, aby mieæ nazwê do logowania
public:
// AnsiString asName;
__fastcall TTractionPowerSource();
__fastcall ~TTractionPowerSource();
void __fastcall Init(double u, double i);
bool __fastcall Load(cParser *parser);
bool __fastcall Render();
bool __fastcall Update(double dt);
double __fastcall CurrentGet(double res);
void __fastcall VoltageSet(double v) { NominalVoltage = v; };
void __fastcall PowerSet(TTractionPowerSource *ps);
};
//---------------------------------------------------------------------------