aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/serializer/validating/boolean.cxx
blob: f20ef8c7836a1d7b56ceb4e87566da5fab04b80c (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-2011 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));
        }
      }
    }
  }
}