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