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