openETCS
case study for the European Train Control System developed for the authors dissertation
BuildGenerator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010-2012
3  Johannes Feuser <feuser@uni-bremen.de>
4  This file is part of the openETCS library.
5 
6  The openETCS library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  any later version.
10 
11  The openETCS library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with the openETCS library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 
21 
22 #ifndef __OETCS_GEN_BUILDGENERATOR_H__
23 #define __OETCS_GEN_BUILDGENERATOR_H__
24 
25 
26 #include <chrono>
27 #include <iomanip>
28 #include <sstream>
29 
30 #include <ostream>
31 #include "Error/ExceptionTypes.h"
32 #include "Generator.h"
33 
34 
35 
36 
37 namespace DSM { class CSyntaxTree; }
38 
39 
40 namespace oETCS {
41 
42 namespace GEN {
43 
44 
45 /*!
46  * \brief generator for build configuration
47  */
49 {
50  public:
51  /*!
52  * \brief generation method
53  *
54  * Generates from a syntax tree the corresponding output.
55  * \remark pure virtual method, which must be reimplemented by any
56  * inheriting class.
57  *
58  * \param[in] pTree pointer to the syntax tree used for generation
59  * \param[in] OutStream Stream object used for output
60  */
61  virtual void Generate(::DSM::CSyntaxTree * const pSyntaxTree, ::std::ostream & OutStream) throw(::oETCS::GEN::Error::CException);
62 
63 
64 
65 
66 }; // class CBuildGenerator : public oETCS::GEN::CGenerator
67 
68 
69 
70 
71 
72 } // namespace oETCS::GEN
73 
74 } // namespace oETCS
75 
76 #endif // __ OETCS_GEN_BUILDGENERATOR_H__

Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
The openETCS library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the openETCS library. If not, see "http://www.gnu.org/licenses/.