summaryrefslogtreecommitdiffstats
path: root/src/uscxml/transform/ChartToVHDL.h
diff options
context:
space:
mode:
authorStefan Radomski <sradomski@mintwerk.de>2016-01-26 08:43:42 (GMT)
committerStefan Radomski <sradomski@mintwerk.de>2016-01-26 08:43:42 (GMT)
commit2c0b28093912f23e52e79281dddb6e2049673f29 (patch)
tree5c1ede42a6c9d443a5b0769d0bcdd8c6dbe47d09 /src/uscxml/transform/ChartToVHDL.h
parentda54846c2ea8cf35c22b70a2a7a53f525df8f0c9 (diff)
downloaduscxml-2c0b28093912f23e52e79281dddb6e2049673f29.zip
uscxml-2c0b28093912f23e52e79281dddb6e2049673f29.tar.gz
uscxml-2c0b28093912f23e52e79281dddb6e2049673f29.tar.bz2
Beautified code
Diffstat (limited to 'src/uscxml/transform/ChartToVHDL.h')
-rw-r--r--src/uscxml/transform/ChartToVHDL.h83
1 files changed, 42 insertions, 41 deletions
diff --git a/src/uscxml/transform/ChartToVHDL.h b/src/uscxml/transform/ChartToVHDL.h
index 05397cb..ec649f4 100644
--- a/src/uscxml/transform/ChartToVHDL.h
+++ b/src/uscxml/transform/ChartToVHDL.h
@@ -32,61 +32,62 @@
namespace uscxml {
- class USCXML_API ChartToVHDL : public InterpreterRC, public TransformerImpl {
- public:
+class USCXML_API ChartToVHDL : public InterpreterRC, public TransformerImpl {
+public:
- virtual ~ChartToVHDL();
- static Transformer transform(const Interpreter& other);
+ virtual ~ChartToVHDL();
+ static Transformer transform(const Interpreter& other);
- void writeTo(std::ostream& stream);
+ void writeTo(std::ostream& stream);
- static Arabica::XPath::NodeSet<std::string> inPostFixOrder(const std::set<std::string>& elements,
- const Arabica::DOM::Element<std::string>& root);
- static Arabica::XPath::NodeSet<std::string> inDocumentOrder(const std::set<std::string>& elements,
- const Arabica::DOM::Element<std::string>& root);
- protected:
- ChartToVHDL(const Interpreter& other);
+ static Arabica::XPath::NodeSet<std::string> inPostFixOrder(const std::set<std::string>& elements,
+ const Arabica::DOM::Element<std::string>& root);
+ static Arabica::XPath::NodeSet<std::string> inDocumentOrder(const std::set<std::string>& elements,
+ const Arabica::DOM::Element<std::string>& root);
- static void inPostFixOrder(const std::set<std::string>& elements,
- const Arabica::DOM::Element<std::string>& root,
- Arabica::XPath::NodeSet<std::string>& nodes);
+protected:
+ ChartToVHDL(const Interpreter& other);
- static void inDocumentOrder(const std::set<std::string>& elements,
- const Arabica::DOM::Element<std::string>& root,
- Arabica::XPath::NodeSet<std::string>& nodes);
+ static void inPostFixOrder(const std::set<std::string>& elements,
+ const Arabica::DOM::Element<std::string>& root,
+ Arabica::XPath::NodeSet<std::string>& nodes);
- void writeIncludes(std::ostream& stream);
- void writeTopDown(std::ostream& stream);
+ static void inDocumentOrder(const std::set<std::string>& elements,
+ const Arabica::DOM::Element<std::string>& root,
+ Arabica::XPath::NodeSet<std::string>& nodes);
- void writeTypes(std::ostream& stream);
- void writeNextStateLogic(std::ostream& stream);
- void writeOutputLogic(std::ostream& stream);
- void writeSignals(std::ostream& stream);
- void writeFiFo(std::ostream& stream);
- void writeModuleInstantiation(std::ostream& stream);
- void writeErrorHandler(std::ostream& stream);
- void writeFSM(std::ostream& stream);
+ void writeIncludes(std::ostream& stream);
+ void writeTopDown(std::ostream& stream);
+ void writeTypes(std::ostream& stream);
+ void writeNextStateLogic(std::ostream& stream);
+ void writeOutputLogic(std::ostream& stream);
+ void writeSignals(std::ostream& stream);
+ void writeFiFo(std::ostream& stream);
+ void writeModuleInstantiation(std::ostream& stream);
+ void writeErrorHandler(std::ostream& stream);
+ void writeFSM(std::ostream& stream);
- Interpreter interpreter;
- std::string _initState;
- Arabica::XPath::NodeSet<std::string> _states;
- std::map<std::string, Arabica::DOM::Element<std::string> > _stateNames;
- Arabica::XPath::NodeSet<std::string> _transitions;
- std::map<std::string, Arabica::DOM::Element<std::string> > _transitionNames;
- std::vector<std::string> _events;
+ Interpreter interpreter;
- bool _hasGlobalScripts;
- bool _hasDoneData;
+ std::string _initState;
+ Arabica::XPath::NodeSet<std::string> _states;
+ std::map<std::string, Arabica::DOM::Element<std::string> > _stateNames;
+ Arabica::XPath::NodeSet<std::string> _transitions;
+ std::map<std::string, Arabica::DOM::Element<std::string> > _transitionNames;
+ std::vector<std::string> _events;
- size_t _transCharArraySize;
- std::string _transCharArrayInit;
+ bool _hasGlobalScripts;
+ bool _hasDoneData;
- size_t _stateCharArraySize;
- std::string _stateCharArrayInit;
- };
+ size_t _transCharArraySize;
+ std::string _transCharArrayInit;
+
+ size_t _stateCharArraySize;
+ std::string _stateCharArrayInit;
+};
}