summaryrefslogtreecommitdiffstats
path: root/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h
diff options
context:
space:
mode:
authorSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
committerSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
commit33613a85afc4b1481367fbe92a17ee59c240250b (patch)
tree670b842326116b376b505ec2263878912fca97e2 /Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h
downloadStudium-master.tar.gz
Studium-master.tar.bz2
add new repoHEADmaster
Diffstat (limited to 'Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h')
-rw-r--r--Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h
new file mode 100644
index 0000000..4f87444
--- /dev/null
+++ b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h
@@ -0,0 +1,65 @@
+/*
+ * SuperpositionParameters.h
+ *
+ * Created on: 01.04.2011
+ * Author: sven
+ */
+
+#ifndef SUPERPOSITIONPARAMETERS_H_
+#define SUPERPOSITIONPARAMETERS_H_
+
+#ifndef _GLIBCXX_STRING
+ #include <string>
+#endif
+
+class SuperpositionParameters
+{
+public:
+private:
+ std::string mSourceFileOne;
+ std::string mSourceFileTwo;
+ std::string mDestinationFile;
+public:
+ bool validate() const
+ {
+ return !(mSourceFileOne.empty()
+ || mSourceFileTwo.empty()
+ || mDestinationFile.empty()
+ || (mSourceFileOne.compare(mSourceFileTwo) == 0)
+ || (mSourceFileOne.compare(mDestinationFile) == 0)
+ || (mSourceFileTwo.compare(mDestinationFile) == 0)
+ );
+ }
+ std::string getDestinationFile() const
+ {
+ return mDestinationFile;
+ }
+
+ std::string getSourceFileOne() const
+ {
+ return mSourceFileOne;
+ }
+
+ std::string getSourceFileTwo() const
+ {
+ return mSourceFileTwo;
+ }
+
+ void setDestinationFile(std::string& mDestinationFile)
+ {
+ this->mDestinationFile = mDestinationFile;
+ }
+
+ void setSourceFileOne(std::string& mSourceFileOne)
+ {
+ this->mSourceFileOne = mSourceFileOne;
+ }
+
+ void setSourceFileTwo(std::string& mSourceFileTwo)
+ {
+ this->mSourceFileTwo = mSourceFileTwo;
+ }
+
+};
+
+#endif /* SUPERPOSITIONPARAMETERS_H_ */