Repository navigation
Expand file tree
/
Copy pathBasicBlockMsg.cc
More file actions
136 lines (117 loc) · 3.17 KB
/
Copy pathBasicBlockMsg.cc
File metadata and controls
136 lines (117 loc) · 3.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
//
// Copyright ©2017 NagraFrance
//
#include "BasicBlockMsg.h"
//
// BasicBlock helpers implem
//
/**
* Constructor
*/
cpad::cfg::BasicBlockRequestHelper::BasicBlockRequestHelper(std::string cunit_name,
std::string cfun_name,
std::string bb_name)
: ::cpad::cfg::BasicBlockRequest()
{
set_cunit_name(cunit_name);
set_cfun_name(cfun_name);
set_bb_name(bb_name);
}
/**
* Deserialize constructor
*/
cpad::cfg::BasicBlockRequestHelper::BasicBlockRequestHelper(const char *buffer)
: ::cpad::cfg::BasicBlockRequest()
{
ParseFromString(std::string(buffer));
}
cpad::cfg::BasicBlockRequestHelper::BasicBlockRequestHelper(const ::cpad::cfg::BasicBlockRequest* request)
: ::cpad::cfg::BasicBlockRequest(*request)
{
}
/**
* Default constructor
*/
cpad::cfg::BasicBlockRequestHelper::~BasicBlockRequestHelper()
{
}
/**
* Copy constructor
*/
cpad::cfg::BasicBlockRequestHelper::BasicBlockRequestHelper(cpad::cfg::BasicBlockRequestHelper const&a_copy)
: cpad::cfg::BasicBlockRequestHelper(a_copy.cunit_name(),
a_copy.cfun_name(),
a_copy.bb_name())
{
}
/**
* Affectation Operator
*/
cpad::cfg::BasicBlockRequestHelper&
cpad::cfg::BasicBlockRequestHelper::operator =(cpad::cfg::BasicBlockRequestHelper const&a_copy)
{
set_cunit_name(a_copy.cunit_name());
set_cfun_name(a_copy.cfun_name());
set_bb_name(a_copy.bb_name());
return *this;
}
/**
* Serialize helper method
*/
size_t
cpad::cfg::BasicBlockRequestHelper::serialize(char *buffer)
{
std::string local_buf;
SerializeToString(&local_buf);
local_buf.copy(buffer, local_buf.length());
return local_buf.length();
}
/**
* Dump helper method
*/
void
cpad::cfg::BasicBlockRequestHelper::dump(std::ostream& osb)
{
osb << "[BasicBlockRequest]" << std::endl;
osb << " CUnit name: " << cunit_name() << std::endl;
osb << " CFun name: " << cfun_name() << std::endl;
osb << " BB name: " << bb_name() << std::endl;
}
cpad::cfg::BasicBlockResponseHelper::BasicBlockResponseHelper()
: ::cpad::cfg::BasicBlockResponse()
{
}
cpad::cfg::BasicBlockResponseHelper::BasicBlockResponseHelper(const char *buffer)
: ::cpad::cfg::BasicBlockResponse()
{
ParseFromString(std::string(buffer));
}
cpad::cfg::BasicBlockResponseHelper::BasicBlockResponseHelper(const ::cpad::cfg::BasicBlockResponse* response)
: ::cpad::cfg::BasicBlockResponse(*response)
{
}
cpad::cfg::BasicBlockResponseHelper::~BasicBlockResponseHelper()
{
}
cpad::cfg::BasicBlockResponseHelper::BasicBlockResponseHelper(cpad::cfg::BasicBlockResponseHelper const&a_copy)
: cpad::cfg::BasicBlockResponseHelper()
{
}
cpad::cfg::BasicBlockResponseHelper&
cpad::cfg::BasicBlockResponseHelper::operator =(cpad::cfg::BasicBlockResponseHelper const&a_copy)
{
return *this;
}
size_t
cpad::cfg::BasicBlockResponseHelper::serialize(char *buffer)
{
std::string local_buf;
SerializeToString(&local_buf);
local_buf.copy(buffer, local_buf.length());
return local_buf.length();
}
void
cpad::cfg::BasicBlockResponseHelper::dump(std::ostream& osb)
{
osb << "[BasicBlockResponse]" << std::endl;
}