From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../Superposition/src/SuperpositionParameters.h | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h (limited to 'Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h') 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 +#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_ */ -- cgit v1.2.3