blob: d505d632e8029b588ad81f987255721a65e19d70 (
plain)
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
|
// file : xsde/cxx/serializer/non-validating/boolean.cxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#include <xsde/cxx/serializer/non-validating/boolean.hxx>
namespace xsde
{
namespace cxx
{
namespace serializer
{
namespace non_validating
{
void boolean_simpl::
pre (bool value)
{
value_ = value;
}
void boolean_simpl::
_serialize_content ()
{
_characters ((value_ ? "true" : "false"), (value_ ? 4 : 5));
}
}
}
}
}
|