OpenWAM
TCGestorWAM.h
1 /*--------------------------------------------------------------------------------*\
2 |==========================|
3  |\\ /\ /\ // O pen | OpenWAM: The Open Source 1D Gas-Dynamic Code
4  | \\ | X | // W ave |
5  | \\ \/_\/ // A ction | CMT-Motores Termicos / Universidad Politecnica Valencia
6  | \\/ \// M odel |
7  ----------------------------------------------------------------------------------
8  | License
9  |
10  | This file is part of OpenWAM.
11  |
12  | OpenWAM is free software: you can redistribute it and/or modify
13  | it under the terms of the GNU General Public License as published by
14  | the Free Software Foundation, either version 3 of the License, or
15  | (at your option) any later version.
16  |
17  | OpenWAM is distributed in the hope that it will be useful,
18  | but WITHOUT ANY WARRANTY; without even the implied warranty of
19  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  | GNU General Public License for more details.
21  |
22  | You should have received a copy of the GNU General Public License
23  | along with OpenWAM. If not, see <http://www.gnu.org/licenses/>.
24  |
25  \*--------------------------------------------------------------------------------*/
26 
27 //---------------------------------------------------------------------------
28 #ifndef TCGestorWAMH
29 #define TCGestorWAMH
30 //---------------------------------------------------------------------------
31 #endif
32 
33 //#include <Classes.hpp>
34 //#include <stdio.h>
35 #include <windows.h>
36 //#include <iostream>
37 //#include <sstream>
38 #include "Globales.h"
39 
40 #define BUFSIZE 4096
41 
42 class TCGestorWAM {
43  private:
44  // User declarations
45  HANDLE hPipe;
46  HANDLE hPipeResp;
47 
48  void Enviar(LPTSTR msg);
49  void Enviar(float valor);
50  void EsperarRespuesta();
51  public:
52  __fastcall TCGestorWAM();
53  void Init();
54  void NuevoMensaje(LPTSTR msg);
55  void ProcesoTranscurrido(float valor);
56  void CabeceraResInstantActualizada();
57  void CabeceraResMediosActualizada();
58  void FichResMediosActualizado();
59  void FichResInstantActualizado();
60  void Terminar();
61 };
TCGestorWAM
Definition: TCGestorWAM.h:42