MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SetVarReq.hpp
1 /*
2  Copyright (C) 2003, 2005, 2006 MySQL AB
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef SETVARREQ_H
20 #define SETVARREQ_H
21 
22 #include "SignalData.hpp"
23 #include "ConfigParamId.hpp"
24 
25 class SetVarReq {
26 
27 public:
28 
29 
30  static UintR size();
31 
32  void mgmtSrvrBlockRef(UintR mgmtSrvrBlockRef);
33  UintR mgmtSrvrBlockRef(void) const;
34 
35  void variable(ConfigParamId variable);
36  ConfigParamId variable(void) const;
37 
38  void value(UintR value);
39  UintR value(void) const;
40 
41 
42 private:
43 
44  UintR _mgmtSrvrBlockRef;
45  UintR _variable;
46  UintR _value;
47 };
48 
49 
50 
51 inline UintR SetVarReq::size(void) {
52  return 3;
53 }
54 
55 
56 inline void SetVarReq::mgmtSrvrBlockRef(UintR mgmtSrvrBlockRef) {
57  _mgmtSrvrBlockRef = mgmtSrvrBlockRef;
58 }
59 
60 inline UintR SetVarReq::mgmtSrvrBlockRef(void) const {
61  return _mgmtSrvrBlockRef;
62 }
63 
64 
65 inline void SetVarReq::variable(ConfigParamId variable) {
66  _variable = variable;
67 }
68 
69 
70 inline ConfigParamId SetVarReq::variable(void) const {
71  return static_cast<ConfigParamId>(_variable);
72 }
73 
74 
75 inline void SetVarReq::value(UintR value) {
76  _value = value;
77 }
78 
79 inline UintR SetVarReq::value(void) const {
80  return _value;
81 }
82 
83 
84 
85 #endif // SETVARREQ_H
86