-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCSStag.cpp
More file actions
84 lines (62 loc) · 2.17 KB
/
CSStag.cpp
File metadata and controls
84 lines (62 loc) · 2.17 KB
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
/*
* CSStag.cpp
*
* Created on: Apr 27, 2013
* Author: brandon
*/
#include "CSStag.h"
CSStag::CSStag() : tagName(""), tagType(0), tagGroup(0), tagConnected(0), tagExtend(0) {}
CSStag::CSStag(int type, std::string name) : tagName(name), tagType(type), tagGroup(0), tagConnected(0), tagExtend(0) {
if (type == ( 4 | 5 )){tagName = "";}
}
CSStag::CSStag(int type, int position, std::string name) : tagName(name), tagType(type), tagGroup(position), tagConnected(), tagExtend(0) {
if (type == ( 4 | 5 )){tagName = "";}
}
CSStag::CSStag(int type, int position, int connection, std::string name) : tagName(name), tagType(type), tagGroup(position), tagConnected(connection), tagExtend(0) {
if (type == ( 4 | 5 )){tagName = "";}
}
CSStag::~CSStag() {}
void CSStag::setTag(int type, std::string name) {
setTag(type,0, 0,name);
}
void CSStag::setTag(int type, int position, std::string name) {setTag(type, position, 0, name);}
void CSStag::setTag(int type, int position, int connected, std::string name) {
if (type == ( 4 | 5 )){tagName = "";}
tagType = type;
tagName = name;
tagGroup = position;
tagConnected = connected;
tagExtend = 0;
}
void CSStag::setTagName(std::string name) {tagName = name;}
void CSStag::setTagType(int type) {
if (type == ( 4 | 5 )){tagName = "";}
tagType = type;
}
void CSStag::setTagGroup(int position) {tagGroup = position;}
void CSStag::setTagConnected(int connected) {tagConnected = connected;}
CSStag CSStag::getTag(void) {
CSStag tag(tagType, tagGroup, tagConnected, tagName);
tag.setTagExtend(tagExtend);
return tag;
}
std::string CSStag::getTagName(void) {return tagName;}
int CSStag::getTagType(void) {return tagType;}
int CSStag::getTagGroup(void) {return tagGroup;}
void CSStag::setTagExtend(int extend) {tagExtend = extend;}
int CSStag::getTagConnected(void) {return tagConnected;}
void CSStag::setTag(CSStag tag) {
tagType = tag.getTagType();
tagName = tag.getTagName();
tagGroup = tag.getTagGroup();
tagConnected = tag.getTagConnected();
tagExtend = tag.getTagExtend();
}
void CSStag::clearTag(void) {
tagType = 0;
tagName = "";
tagGroup = 0;
tagConnected = 0;
tagExtend = 0;
}
int CSStag::getTagExtend(void) {return tagExtend;}