// Generated by gtkmmproc -- DO NOT MODIFY!


#include <glibmm.h>

#include <libgdamm/blob.h>
#include <libgdamm/private/blob_p.h>


// -*- C++ -*- //

/* blob.ccg
 *
 * Copyright 2001      Free Software Foundation
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
#include <libgda/gda-value.h>

namespace Gnome
{

namespace Gda
{

} // namespace Gda

} // namesoace Gnome

namespace
{
} // anonymous namespace


namespace Glib
{

Gnome::Gda::Blob& wrap(GdaBlob* object)
{
  return *reinterpret_cast<Gnome::Gda::Blob*>(object);
}

const Gnome::Gda::Blob& wrap(const GdaBlob* object)
{
  return *reinterpret_cast<const Gnome::Gda::Blob*>(object);
}

} // namespace Glib


namespace Gnome
{

namespace Gda
{


// static
GType Blob::get_type()
{
  return gda_blob_get_type();
}

Blob::Blob()
{
  GLIBMM_INITIALIZE_STRUCT(gobject_, GdaBlob);
}

Blob::Blob(const GdaBlob* gobject)
{
  if(gobject)
    gobject_ = *gobject;
  else
    GLIBMM_INITIALIZE_STRUCT(gobject_, GdaBlob);
}


void Blob::set_op(const Glib::RefPtr<BlobOp>& op)
{
gda_blob_set_op(gobj(), Glib::unwrap(op)); 
}

Glib::ustring Blob::to_string(guint maxlen) const
{
  return Glib::convert_return_gchar_ptr_to_ustring(gda_blob_to_string(const_cast<GdaBlob*>(gobj()), maxlen));
}


} // namespace Gda

} // namespace Gnome


