-
Notifications
You must be signed in to change notification settings - Fork 3
/
StreamPreference.h
executable file
·118 lines (95 loc) · 2.81 KB
/
StreamPreference.h
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
//
// Copyright 2015 CutePoisonX ([email protected])
//
// This file is part of PoisonConvert.
//
// PoisonConvert is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// PoisonConvert is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with PoisonConvert. If not, see <http://www.gnu.org/licenses/>.
//
#ifndef STREAMPREFERENCE_H
#define STREAMPREFERENCE_H
#include <string>
#include <vector>
static const unsigned int ALLPARAMS = 5;
using namespace std;
class StreamPreference {
public:
StreamPreference(string param1, string param2, string param3,
string param4, string param5);
StreamPreference(const StreamPreference& orig);
virtual ~StreamPreference();
int saveTarget(unsigned int target);
int editTarget(unsigned int new_target,
unsigned int position);
int deleteAllTargets(unsigned int target);
//----------------------------------------------------------------------------
void SetParam5(string& param5_)
{
this->param5_ = param5_;
}
string GetParam5() const
{
return param5_;
}
void SetParam4(string& param4_)
{
this->param4_ = param4_;
}
string GetParam4() const
{
return param4_;
}
void SetParam3(string& param3_)
{
this->param3_ = param3_;
}
string GetParam3() const
{
return param3_;
}
void SetParam2(string& param2_)
{
this->param2_ = param2_;
}
string GetParam2() const
{
return param2_;
}
void SetParam1(string& param1_)
{
this->param1_ = param1_;
}
string GetParam1() const
{
return param1_;
}
unsigned int GetTargetID(unsigned int item) const
{
return link_target_.at(item);
}
unsigned int GetTargetVecLen() const
{
return link_target_.size();
}
//----------------------------------------------------------------------------
private:
//----------------------------------------------------------------------------
string param1_;
string param2_;
string param3_;
string param4_;
string param5_;
vector<unsigned int> link_target_;
//----------------------------------------------------------------------------
};
#endif /* STREAMPREFERENCE_H */