summaryrefslogtreecommitdiffstats
path: root/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Superposition/src/SuperpositionParameters.h
blob: 4f87444edf8780491ee83796684d93d32aab72cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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_ */