]>
Commit | Line | Data |
---|---|---|
b8151fa1 CT |
1 | /* |
2 | * $Id$ | |
3 | * | |
4 | * DEBUG: section 16 Cache Manager API | |
5 | * | |
6 | */ | |
7 | ||
8 | #include "config.h" | |
9 | #include "ipc/TypedMsgHdr.h" | |
10 | #include "mgr/StringParam.h" | |
11 | ||
12 | ||
13 | Mgr::StringParam::StringParam(): | |
10c40d99 | 14 | QueryParam(QueryParam::ptString), str() |
b8151fa1 CT |
15 | { |
16 | } | |
17 | ||
18 | Mgr::StringParam::StringParam(const String& aString): | |
10c40d99 | 19 | QueryParam(QueryParam::ptString), str(aString) |
b8151fa1 CT |
20 | { |
21 | } | |
22 | ||
23 | void | |
24 | Mgr::StringParam::pack(Ipc::TypedMsgHdr& msg) const | |
25 | { | |
26 | msg.putPod(type); | |
27 | msg.putString(str); | |
28 | } | |
29 | ||
30 | void | |
31 | Mgr::StringParam::unpackValue(const Ipc::TypedMsgHdr& msg) | |
32 | { | |
33 | msg.getString(str); | |
34 | } | |
35 | ||
36 | const String& | |
37 | Mgr::StringParam::value() const | |
38 | { | |
39 | return str; | |
40 | } |