summaryrefslogtreecommitdiffstats
path: root/Bachelor/Softwaretechnik/swtBank
diff options
context:
space:
mode:
Diffstat (limited to 'Bachelor/Softwaretechnik/swtBank')
-rw-r--r--Bachelor/Softwaretechnik/swtBank/.cdtbuild25
-rw-r--r--Bachelor/Softwaretechnik/swtBank/.cdtproject18
-rw-r--r--Bachelor/Softwaretechnik/swtBank/.project19
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/girokonto.d10
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/konto.d8
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/main.d10
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/makefile30
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/objects.mk13
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/sources.mk16
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/subdir.mk46
-rw-r--r--Bachelor/Softwaretechnik/swtBank/Debug/swtBankbin0 -> 188063 bytes
-rw-r--r--Bachelor/Softwaretechnik/swtBank/girokonto.cpp53
-rw-r--r--Bachelor/Softwaretechnik/swtBank/girokonto.hpp70
-rw-r--r--Bachelor/Softwaretechnik/swtBank/konto.cpp60
-rw-r--r--Bachelor/Softwaretechnik/swtBank/konto.hpp79
-rw-r--r--Bachelor/Softwaretechnik/swtBank/main.cpp53
16 files changed, 510 insertions, 0 deletions
diff --git a/Bachelor/Softwaretechnik/swtBank/.cdtbuild b/Bachelor/Softwaretechnik/swtBank/.cdtbuild
new file mode 100644
index 0000000..35e44a8
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/.cdtbuild
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?fileVersion 2.1.0?>
+
+<ManagedProjectBuildInfo>
+<project id="swtBank.cdt.managedbuild.target.gnu.exe.735850470" name="Executable (Gnu)" projectType="cdt.managedbuild.target.gnu.exe">
+<configuration id="cdt.managedbuild.config.gnu.exe.debug.1827617623" name="Debug" parent="cdt.managedbuild.config.gnu.exe.debug" artifactName="swtBank" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" cleanCommand="rm -rf">
+<toolChain superClass="cdt.managedbuild.toolchain.gnu.exe.debug" id="cdt.managedbuild.toolchain.gnu.exe.debug.1131710309" name="GCC Tool Chain">
+<tool superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug" id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.1429132214" name="GCC C Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug" id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.923964772" name="GCC C++ Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.c.linker.exe.debug" id="cdt.managedbuild.tool.gnu.c.linker.exe.debug.989263170" name="GCC C Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug" id="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug.204067819" name="GCC C++ Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.assembler.exe.debug" id="cdt.managedbuild.tool.gnu.assembler.exe.debug.177199244" name="GCC Assembler"/>
+</toolChain>
+</configuration>
+<configuration id="cdt.managedbuild.config.gnu.exe.release.377632078" name="Release" parent="cdt.managedbuild.config.gnu.exe.release" artifactName="swtBank" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" cleanCommand="rm -rf">
+<toolChain superClass="cdt.managedbuild.toolchain.gnu.exe.release" id="cdt.managedbuild.toolchain.gnu.exe.release.553495214" name="GCC Tool Chain">
+<tool superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release" id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.349471328" name="GCC C Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release" id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.1715869543" name="GCC C++ Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release" id="cdt.managedbuild.tool.gnu.c.linker.exe.release.1573871425" name="GCC C Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.release" id="cdt.managedbuild.tool.gnu.cpp.linker.exe.release.476504321" name="GCC C++ Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.assembler.exe.release" id="cdt.managedbuild.tool.gnu.assembler.exe.release.636761427" name="GCC Assembler"/>
+</toolChain>
+</configuration>
+</project>
+</ManagedProjectBuildInfo>
diff --git a/Bachelor/Softwaretechnik/swtBank/.cdtproject b/Bachelor/Softwaretechnik/swtBank/.cdtproject
new file mode 100644
index 0000000..82c36e0
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/.cdtproject
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse-cdt version="2.0"?>
+
+<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
+<extension point="org.eclipse.cdt.core.ScannerInfoProvider" id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager"/>
+<extension point="org.eclipse.cdt.core.BinaryParser" id="org.eclipse.cdt.core.ELF"/>
+<data>
+<item id="cdt_indexer">
+<indexEnabled indexValue="true"/>
+<indexerProblemsEnabled indexProblemsValue="0"/>
+</item>
+<item id="org.eclipse.cdt.core.pathentry">
+<pathentry kind="src" path=""/>
+<pathentry kind="out" path=""/>
+<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
+</item>
+</data>
+</cdtproject>
diff --git a/Bachelor/Softwaretechnik/swtBank/.project b/Bachelor/Softwaretechnik/swtBank/.project
new file mode 100644
index 0000000..96a2795
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/.project
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>swtBank</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ </natures>
+</projectDescription>
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/girokonto.d b/Bachelor/Softwaretechnik/swtBank/Debug/girokonto.d
new file mode 100644
index 0000000..319955e
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/girokonto.d
@@ -0,0 +1,10 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+girokonto.d ./girokonto.o: ../girokonto.cpp ../girokonto.hpp ../konto.hpp
+
+../girokonto.hpp:
+
+../konto.hpp:
+
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/konto.d b/Bachelor/Softwaretechnik/swtBank/Debug/konto.d
new file mode 100644
index 0000000..75c00a3
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/konto.d
@@ -0,0 +1,8 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+konto.d ./konto.o: ../konto.cpp ../konto.hpp
+
+../konto.hpp:
+
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/main.d b/Bachelor/Softwaretechnik/swtBank/Debug/main.d
new file mode 100644
index 0000000..4351548
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/main.d
@@ -0,0 +1,10 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+main.d ./main.o: ../main.cpp ../girokonto.hpp ../konto.hpp
+
+../girokonto.hpp:
+
+../konto.hpp:
+
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/makefile b/Bachelor/Softwaretechnik/swtBank/Debug/makefile
new file mode 100644
index 0000000..7fd327b
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/makefile
@@ -0,0 +1,30 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+ROOT := ..
+
+-include $(ROOT)/makefile.init
+
+RM := rm -rf
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include $(SUBDIRS:%=%/subdir.mk)
+-include objects.mk
+-include $(DEPS)
+-include $(ROOT)/makefile.defs
+
+all: swtBank
+
+swtBank: $(OBJS)
+ @echo 'Building target: $@'
+ g++ -o $@ $(OBJS) $(USER_OBJS) $(LIBS)
+ @echo 'Finished building: $@'
+
+clean:
+ -$(RM) $(OBJS) $(DEPS) swtBank
+
+.PHONY: all clean dependents
+
+-include $(ROOT)/makefile.targets
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/objects.mk b/Bachelor/Softwaretechnik/swtBank/Debug/objects.mk
new file mode 100644
index 0000000..59a3b5b
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/objects.mk
@@ -0,0 +1,13 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+LIBS :=
+USER_OBJS :=
+
+
+OBJS := \
+ $(C_SRCS:$(ROOT)/%.c=%.o) $(C_UPPER_SRCS:$(ROOT)/%.C=%.o) $(CC_SRCS:$(ROOT)/%.cc=%.o) $(CXX_SRCS:$(ROOT)/%.cxx=%.o) $(CPP_SRCS:$(ROOT)/%.cpp=%.o) $(S_SRCS:$(ROOT)/%.s=%.o) $(S_UPPER_SRCS:$(ROOT)/%.S=%.o)
+
+DEPS := \
+ $(C_SRCS:$(ROOT)/%.c=%.d) $(C_UPPER_SRCS:$(ROOT)/%.C=%.d) $(CC_SRCS:$(ROOT)/%.cc=%.d) $(CXX_SRCS:$(ROOT)/%.cxx=%.d) $(CPP_SRCS:$(ROOT)/%.cpp=%.d) $(S_SRCS:$(ROOT)/%.s=%.d) $(S_UPPER_SRCS:$(ROOT)/%.S=%.d) \ No newline at end of file
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/sources.mk b/Bachelor/Softwaretechnik/swtBank/Debug/sources.mk
new file mode 100644
index 0000000..357bfc1
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/sources.mk
@@ -0,0 +1,16 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+C_SRCS :=
+C_UPPER_SRCS :=
+CC_SRCS :=
+CXX_SRCS :=
+CPP_SRCS :=
+S_SRCS :=
+S_UPPER_SRCS :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+. \
+
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/subdir.mk b/Bachelor/Softwaretechnik/swtBank/Debug/subdir.mk
new file mode 100644
index 0000000..f8084c0
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/subdir.mk
@@ -0,0 +1,46 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+S_UPPER_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+CPP_SRCS += \
+${addprefix $(ROOT)/, \
+girokonto.cpp \
+konto.cpp \
+main.cpp \
+}
+
+CC_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+C_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+C_UPPER_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+CXX_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+S_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+# Each subdirectory must supply rules for building sources it contributes
+%.o: $(ROOT)/%.cpp
+ @echo 'Building file: $<'
+ @echo g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
diff --git a/Bachelor/Softwaretechnik/swtBank/Debug/swtBank b/Bachelor/Softwaretechnik/swtBank/Debug/swtBank
new file mode 100644
index 0000000..6f66f0c
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/Debug/swtBank
Binary files differ
diff --git a/Bachelor/Softwaretechnik/swtBank/girokonto.cpp b/Bachelor/Softwaretechnik/swtBank/girokonto.cpp
new file mode 100644
index 0000000..2c77bc8
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/girokonto.cpp
@@ -0,0 +1,53 @@
+/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/girokonto.cpp
+ *
+ */
+
+
+// ino.module.girokonto.513.includes
+#include "girokonto.hpp"
+// ino.end
+
+
+// ino.method.Girokonto.505.definition
+Girokonto::Girokonto()
+// ino.end
+// ino.method.Girokonto.505.body
+{
+ ueberziehungsKredit=1000;
+}
+// ino.end
+
+// ino.method.~Girokonto.502.definition
+Girokonto::~Girokonto()
+// ino.end
+// ino.method.~Girokonto.502.body
+{
+}
+// ino.end
+
+// ino.method.pruefeUeberziehungsKredit.478.definition
+bool Girokonto::pruefeUeberziehungsKredit(float betrag)
+// ino.end
+// ino.method.pruefeUeberziehungsKredit.478.body
+{
+ if ((getKontostand()>betrag) || ((getKontostand()+ueberziehungsKredit)>betrag))
+ {
+ //geldAbheben(betrag);
+ return true;
+ }
+ else
+ return false;
+}
+// ino.end
+
+
diff --git a/Bachelor/Softwaretechnik/swtBank/girokonto.hpp b/Bachelor/Softwaretechnik/swtBank/girokonto.hpp
new file mode 100644
index 0000000..a0d4388
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/girokonto.hpp
@@ -0,0 +1,70 @@
+/**********************************************************************************/
+/* Deklarationsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/girokonto.hpp
+ *
+ */
+
+
+// ino.module.girokonto.511.ifndef
+#ifndef _GIROKONTO_HPP_511
+#define _GIROKONTO_HPP_511
+// ino.end
+
+// ino.module.girokonto.511.decIncludes
+#include "konto.hpp"
+// ino.end
+
+namespace analysis_system {
+
+
+// ino.class.Girokonto.474.declaration
+class Girokonto: public Konto
+// ino.end
+// ino.class.Girokonto.474.body
+{
+ // ino.attribute.ueberziehungsKredit.476.declaration
+ private:
+ float ueberziehungsKredit;
+ // ino.end
+
+ // ino.method.Girokonto.505.declaration
+ public:
+ Girokonto(void);
+ // ino.end
+
+ // ino.method.~Girokonto.502.declaration
+ public:
+ virtual ~Girokonto(void);
+ // ino.end
+
+ // ino.method.pruefeUeberziehungsKredit.478.declaration
+ public:
+ virtual bool pruefeUeberziehungsKredit(float betrag);
+ // ino.end
+
+};
+// ino.end
+
+
+
+
+
+}; // namespace analysis system
+
+
+#if !defined(NO_IMPLICIT_NAMESPACE_USE)
+using namespace analysis_system;
+#endif
+
+// ino.module.girokonto.511.endif
+#endif
+// ino.end
+
diff --git a/Bachelor/Softwaretechnik/swtBank/konto.cpp b/Bachelor/Softwaretechnik/swtBank/konto.cpp
new file mode 100644
index 0000000..4864c9d
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/konto.cpp
@@ -0,0 +1,60 @@
+/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/konto.cpp
+ *
+ */
+
+
+// ino.module.konto.512.includes
+#include "konto.hpp"
+// ino.end
+
+
+// ino.method.Konto.499.definition
+Konto::Konto(void)
+// ino.end
+// ino.method.Konto.499.body
+{
+ kontostand=0;
+ kontonummer=12345678;
+}
+// ino.end
+
+// ino.method.~Konto.496.definition
+Konto::~Konto(void)
+// ino.end
+// ino.method.~Konto.496.body
+{
+}
+// ino.end
+
+// ino.method.geldEinzahlen.470.definition
+void Konto::geldEinzahlen(float betrag)
+// ino.end
+// ino.method.geldEinzahlen.470.body
+{
+ kontostand+=betrag;
+}
+// ino.end
+
+// ino.method.geldAbheben.472.definition
+void Konto::geldAbheben(float betrag)
+// ino.end
+// ino.method.geldAbheben.472.body
+{
+ kontostand-=betrag;
+}
+// ino.end
+
+float Konto::getKontostand()
+{
+ return kontostand;
+}
diff --git a/Bachelor/Softwaretechnik/swtBank/konto.hpp b/Bachelor/Softwaretechnik/swtBank/konto.hpp
new file mode 100644
index 0000000..034a797
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/konto.hpp
@@ -0,0 +1,79 @@
+/**********************************************************************************/
+/* Deklarationsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/konto.hpp
+ *
+ */
+
+
+// ino.module.konto.510.ifndef
+#ifndef _KONTO_HPP_510
+#define _KONTO_HPP_510
+// ino.end
+
+
+namespace analysis_system {
+
+
+// ino.class.Konto.464.declaration
+class Konto
+// ino.end
+// ino.class.Konto.464.body
+{
+ // ino.attribute.Kontostand.466.declaration
+ private:
+ float kontostand;
+ // ino.end
+
+ // ino.attribute.Kontonummer.468.declaration
+ private:
+ float kontonummer;
+ // ino.end
+
+ // ino.method.Konto.499.declaration
+ public:
+ Konto(void);
+ // ino.end
+
+ // ino.method.~Konto.496.declaration
+ public:
+ virtual ~Konto(void);
+ // ino.end
+
+ // ino.method.geldEinzahlen.470.declaration
+ public:
+ virtual void geldEinzahlen(float betrag);
+ // ino.end
+
+ // ino.method.geldAbheben.472.declaration
+ public:
+ virtual void geldAbheben(float betrag);
+ // ino.end
+
+ public:
+ virtual float getKontostand();
+};
+// ino.end
+
+
+
+
+
+}; // namespace analysis system
+
+
+#if !defined(NO_IMPLICIT_NAMESPACE_USE)
+using namespace analysis_system;
+#endif
+
+// ino.module.konto.510.endif
+#endif
+// ino.end
+
diff --git a/Bachelor/Softwaretechnik/swtBank/main.cpp b/Bachelor/Softwaretechnik/swtBank/main.cpp
new file mode 100644
index 0000000..ec2dff1
--- /dev/null
+++ b/Bachelor/Softwaretechnik/swtBank/main.cpp
@@ -0,0 +1,53 @@
+#include <iostream>
+#include "girokonto.hpp"
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+int main()
+{
+ Girokonto giro;
+ int select;
+ float betrag;
+
+ do {
+ cout << "GIROKONTO" << endl;
+ cout << "1: Geld einzahlen" << endl;
+ cout << "2: Geld abheben" << endl;
+ cout << "3: Kontostand anzeigen" << endl;
+ cout << endl << "0: Ende" << endl;
+ cout << endl << "Eingabe: ";
+ cin >> select;
+ switch (select)
+ {
+ case 1: {
+ cout << endl << "Betrag: ";
+ cin >> betrag;
+ giro.geldEinzahlen(betrag);
+ break;
+ }
+ case 2: {
+ cout << endl << "Betrag: ";
+ cin >> betrag;
+ if (true == giro.pruefeUeberziehungsKredit(betrag))
+ {
+ giro.geldAbheben(betrag);
+ cout << endl << "Passt scho..." << endl;
+ }
+ else
+ {
+ cout << endl << "nix gibts, leider pleite" << endl;
+ }
+ break;
+ }
+ case 3: {
+ cout << endl << "Kontostand: "<<giro.getKontostand() << endl;
+ break;
+ }
+ default: break;
+ }
+ } while (select!=0);
+
+ return 0;
+}