This repository has been archived by the owner on Jul 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from DHBW-FN/develop
Release 1.0
- Loading branch information
Showing
20 changed files
with
2,746 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,5 @@ Mkfile.old | |
dkms.conf | ||
|
||
/.idea/ | ||
/cmake-build-debug*/ | ||
/cmake-build-debug*/ | ||
/documentation/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<GetOptSetup SignPerLine="79"> | ||
<Author Name="Tobias Götz, Noel Kempter, Niklas Holl, Sebastian Wolf, Philipp Küst" Mail="[email protected]" /> | ||
<HeaderFileName>generatedCode.h</HeaderFileName> | ||
<SourceFileName>generatedCode.cpp</SourceFileName> | ||
<NameSpace>GC</NameSpace> | ||
<ClassName>generatedClass</ClassName> | ||
<OverAllDescription> | ||
<Block>Erstellt einen Rumpf zum einlesen von Argumente aus der Kommandozeile.</Block> | ||
<Block>Es kann sowohl mit innenliegenden Container wie externer Klassenanbindung eine Datenhaltung erfolgen.</Block> | ||
<Block>Sobald ein Methodenaufruf abstrakt ist, wird die Basisklasse abstrakt.</Block> | ||
<Block>Fuer die Formatierung der generierten Dateien wird astyle verwendet.</Block> | ||
</OverAllDescription> | ||
<SampleUsage> | ||
<Sample>getoptgen -h</Sample> | ||
</SampleUsage> | ||
<Options> | ||
<!-- ReqFunc51 --> | ||
<Option Ref="1" Exclusion="2" ShortOpt="h" LongOpt="help" ConnectToInternalMethod="printHelp" Description="Hilfe ausgeben" /> | ||
<!-- ReqFunc52 --> | ||
<Option ShortOpt="v" Interface="Version" ConnectToInternalMethod="printVersion" Description="Gibt die Version des Programms aus" /> | ||
<!-- ReqFunc53 --> | ||
<Option Ref="2" Exclusion="1" LongOpt="exclusion" Description="Dies darf nicht mit help aufgerufen werden" /> | ||
<!-- ReqFunc54 --> | ||
<Option LongOpt="arguments" HasArguments="Required" ConvertTo="Boolean" Interface="Arguments" Description="Dieses hat arguments required und Typwandlung bool" /> | ||
<!-- ReqFunc55 --> | ||
<Option LongOpt="optional" HasArguments="Optional" ConvertTo="Integer" Interface="Optional" DefaultValue="50" Description="Argumente sind optional. Ohne Argument wird der Standartwert 50 genommen." /> | ||
</Options> | ||
</GetOptSetup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
/* | ||
* Editors: Tobias Goetz | ||
*/ | ||
|
||
#include "CodeGenerator.h" | ||
#include "XMLParser.h" | ||
#include "SourceCodeWriter.h" | ||
#include <iostream> | ||
|
||
int main() { | ||
printf("Starting Codegenerator!\n"); | ||
XMLParser parser("example/Example.xml"); | ||
std::cout << parser.toString() << std::endl; | ||
parser.parse(); | ||
SourceCodeWriter writer = SourceCodeWriter(parser.getGetOptSetup()); | ||
writer.writeFile(); | ||
printf("Codegenerator finished!\n"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/* | ||
* Editors: Tobias Goetz | ||
*/ | ||
|
||
#ifndef PROGRAMMING_C_CODEGENERATOR_H | ||
#define PROGRAMMING_C_CODEGENERATOR_H | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/* | ||
* Editors: Tobias Goetz | ||
*/ | ||
|
||
#include "StateMachine.h" | ||
|
||
// Constructor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/* | ||
* Editors: Tobias Goetz | ||
*/ | ||
|
||
#ifndef CODEGENERATOR_STATEMACHINE_H | ||
#define CODEGENERATOR_STATEMACHINE_H | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.