
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 Matthias Koefferlein

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
*  @file gsiDeclQDomCharacterData.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtXml.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQDomCharacterData_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QDomCharacterData

//  Constructor QDomCharacterData::QDomCharacterData()


static void _init_ctor_QDomCharacterData_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return_new<QDomCharacterData *> ();
}

static void _call_ctor_QDomCharacterData_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QDomCharacterData *> (new QDomCharacterData ());
}

static qt_gsi::GenericStaticMethod *_create_ctor_QDomCharacterData_0 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QDomCharacterData::QDomCharacterData()\nThis method creates an object of class QDomCharacterData.", &_init_ctor_QDomCharacterData_0, &_call_ctor_QDomCharacterData_0);
}

//  Constructor QDomCharacterData::QDomCharacterData(const QDomCharacterData &x)


static void _init_ctor_QDomCharacterData_2969 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("x");
  decl->add_arg<const QDomCharacterData & > (argspec_0);
  decl->set_return_new<QDomCharacterData *> ();
}

static void _call_ctor_QDomCharacterData_2969 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QDomCharacterData &arg1 = args.read<const QDomCharacterData & > ();
  ret.write<QDomCharacterData *> (new QDomCharacterData (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QDomCharacterData_2969 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QDomCharacterData::QDomCharacterData(const QDomCharacterData &x)\nThis method creates an object of class QDomCharacterData.", &_init_ctor_QDomCharacterData_2969, &_call_ctor_QDomCharacterData_2969);
}

// void QDomCharacterData::appendData(const QString &arg)


static void _init_f_appendData_2025 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg");
  decl->add_arg<const QString & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_appendData_2025 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  ((QDomCharacterData *)cls)->appendData (arg1);
}

static qt_gsi::GenericMethod *_create_f_appendData_2025 ()
{
  return new qt_gsi::GenericMethod ("appendData", "@brief Method void QDomCharacterData::appendData(const QString &arg)\n", false, &_init_f_appendData_2025, &_call_f_appendData_2025);
}

// QString QDomCharacterData::data()


static void _init_f_data_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<QString > ();
}

static void _call_f_data_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QString > ((QString)((QDomCharacterData *)cls)->data ());
}

static qt_gsi::GenericMethod *_create_f_data_c0 ()
{
  return new qt_gsi::GenericMethod (":data", "@brief Method QString QDomCharacterData::data()\n", true, &_init_f_data_c0, &_call_f_data_c0);
}

// void QDomCharacterData::deleteData(unsigned long int offset, unsigned long int count)


static void _init_f_deleteData_4588 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("offset");
  decl->add_arg<unsigned long int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("count");
  decl->add_arg<unsigned long int > (argspec_1);
  decl->set_return<void > ();
}

static void _call_f_deleteData_4588 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  unsigned long int arg1 = args.read<unsigned long int > ();
  unsigned long int arg2 = args.read<unsigned long int > ();
  ((QDomCharacterData *)cls)->deleteData (arg1, arg2);
}

static qt_gsi::GenericMethod *_create_f_deleteData_4588 ()
{
  return new qt_gsi::GenericMethod ("deleteData", "@brief Method void QDomCharacterData::deleteData(unsigned long int offset, unsigned long int count)\n", false, &_init_f_deleteData_4588, &_call_f_deleteData_4588);
}

// void QDomCharacterData::insertData(unsigned long int offset, const QString &arg)


static void _init_f_insertData_4265 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("offset");
  decl->add_arg<unsigned long int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("arg");
  decl->add_arg<const QString & > (argspec_1);
  decl->set_return<void > ();
}

static void _call_f_insertData_4265 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  unsigned long int arg1 = args.read<unsigned long int > ();
  const QString &arg2 = args.read<const QString & > ();
  ((QDomCharacterData *)cls)->insertData (arg1, arg2);
}

static qt_gsi::GenericMethod *_create_f_insertData_4265 ()
{
  return new qt_gsi::GenericMethod ("insertData", "@brief Method void QDomCharacterData::insertData(unsigned long int offset, const QString &arg)\n", false, &_init_f_insertData_4265, &_call_f_insertData_4265);
}

// unsigned int QDomCharacterData::length()


static void _init_f_length_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<unsigned int > ();
}

static void _call_f_length_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<unsigned int > ((unsigned int)((QDomCharacterData *)cls)->length ());
}

static qt_gsi::GenericMethod *_create_f_length_c0 ()
{
  return new qt_gsi::GenericMethod ("length", "@brief Method unsigned int QDomCharacterData::length()\n", true, &_init_f_length_c0, &_call_f_length_c0);
}

// QDomNode::NodeType QDomCharacterData::nodeType()


static void _init_f_nodeType_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QDomNode::NodeType>::target_type > ();
}

static void _call_f_nodeType_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QDomNode::NodeType>::target_type > ((qt_gsi::Converter<QDomNode::NodeType>::target_type)qt_gsi::CppToQtAdaptor<QDomNode::NodeType>(((QDomCharacterData *)cls)->nodeType ()));
}

static qt_gsi::GenericMethod *_create_f_nodeType_c0 ()
{
  return new qt_gsi::GenericMethod ("nodeType", "@brief Method QDomNode::NodeType QDomCharacterData::nodeType()\n", true, &_init_f_nodeType_c0, &_call_f_nodeType_c0);
}

// QDomCharacterData &QDomCharacterData::operator=(const QDomCharacterData &)


static void _init_f_operator_eq__2969 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const QDomCharacterData & > (argspec_0);
  decl->set_return<QDomCharacterData & > ();
}

static void _call_f_operator_eq__2969 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QDomCharacterData &arg1 = args.read<const QDomCharacterData & > ();
  ret.write<QDomCharacterData & > ((QDomCharacterData &)((QDomCharacterData *)cls)->operator= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__2969 ()
{
  return new qt_gsi::GenericMethod ("assign", "@brief Method QDomCharacterData &QDomCharacterData::operator=(const QDomCharacterData &)\n", false, &_init_f_operator_eq__2969, &_call_f_operator_eq__2969);
}

// void QDomCharacterData::replaceData(unsigned long int offset, unsigned long int count, const QString &arg)


static void _init_f_replaceData_6505 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("offset");
  decl->add_arg<unsigned long int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("count");
  decl->add_arg<unsigned long int > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("arg");
  decl->add_arg<const QString & > (argspec_2);
  decl->set_return<void > ();
}

static void _call_f_replaceData_6505 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  unsigned long int arg1 = args.read<unsigned long int > ();
  unsigned long int arg2 = args.read<unsigned long int > ();
  const QString &arg3 = args.read<const QString & > ();
  ((QDomCharacterData *)cls)->replaceData (arg1, arg2, arg3);
}

static qt_gsi::GenericMethod *_create_f_replaceData_6505 ()
{
  return new qt_gsi::GenericMethod ("replaceData", "@brief Method void QDomCharacterData::replaceData(unsigned long int offset, unsigned long int count, const QString &arg)\n", false, &_init_f_replaceData_6505, &_call_f_replaceData_6505);
}

// void QDomCharacterData::setData(const QString &)


static void _init_f_setData_2025 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const QString & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setData_2025 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  ((QDomCharacterData *)cls)->setData (arg1);
}

static qt_gsi::GenericMethod *_create_f_setData_2025 ()
{
  return new qt_gsi::GenericMethod ("setData|data=", "@brief Method void QDomCharacterData::setData(const QString &)\n", false, &_init_f_setData_2025, &_call_f_setData_2025);
}

// QString QDomCharacterData::substringData(unsigned long int offset, unsigned long int count)


static void _init_f_substringData_4588 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("offset");
  decl->add_arg<unsigned long int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("count");
  decl->add_arg<unsigned long int > (argspec_1);
  decl->set_return<QString > ();
}

static void _call_f_substringData_4588 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  unsigned long int arg1 = args.read<unsigned long int > ();
  unsigned long int arg2 = args.read<unsigned long int > ();
  ret.write<QString > ((QString)((QDomCharacterData *)cls)->substringData (arg1, arg2));
}

static qt_gsi::GenericMethod *_create_f_substringData_4588 ()
{
  return new qt_gsi::GenericMethod ("substringData", "@brief Method QString QDomCharacterData::substringData(unsigned long int offset, unsigned long int count)\n", false, &_init_f_substringData_4588, &_call_f_substringData_4588);
}


namespace gsi
{
extern gsi::Class<QDomNode> decl_QDomNode;

gsi::Class<QDomCharacterData> decl_QDomCharacterData (decl_QDomNode, "QDomCharacterData",
  gsi::Methods(_create_ctor_QDomCharacterData_0 ()) +
  gsi::Methods(_create_ctor_QDomCharacterData_2969 ()) +
  gsi::Methods(_create_f_appendData_2025 ()) +
  gsi::Methods(_create_f_data_c0 ()) +
  gsi::Methods(_create_f_deleteData_4588 ()) +
  gsi::Methods(_create_f_insertData_4265 ()) +
  gsi::Methods(_create_f_length_c0 ()) +
  gsi::Methods(_create_f_nodeType_c0 ()) +
  gsi::Methods(_create_f_operator_eq__2969 ()) +
  gsi::Methods(_create_f_replaceData_6505 ()) +
  gsi::Methods(_create_f_setData_2025 ()) +
  gsi::Methods(_create_f_substringData_4588 ()),
  "@qt\n@brief Binding of QDomCharacterData");

}

