diff options
Diffstat (limited to 'Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h')
| -rw-r--r-- | Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h | 65 |
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_ */ |
