/*
** Lua binding: Adapters
** Generated automatically by tolua++-1.0.92 on Fri Feb 21 16:26:10 2014.
*/

#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"

#include "components/lua/tolua++.h"

/* Exported function */
TOLUA_API int  tolua_Adapters_open (lua_State* tolua_S);

#include "../../AdapterBase.h"
#include <string>
#include "../../GenericPropertyAdapter.h"
#include "../../ComboboxAdapter.h"
#include "LuaAdapters.h"

/* function to release collected object via destructor */
#ifdef __cplusplus

static int tolua_collect_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element_ (lua_State* tolua_S)
{
 Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*) tolua_tousertype(tolua_S,1,0);
	Mtolua_delete(self);
	return 0;
}

static int tolua_collect_Ember__OgreView__Gui__Adapters__StringComboboxAdapter_Atlas__Message__Element_ (lua_State* tolua_S)
{
 Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>*) tolua_tousertype(tolua_S,1,0);
	Mtolua_delete(self);
	return 0;
}

static int tolua_collect_Ember__OgreView__Gui__Adapters__GenericPropertyAdapter_Atlas__Message__Element_std__string_ (lua_State* tolua_S)
{
 Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>* self = (Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>*) tolua_tousertype(tolua_S,1,0);
	Mtolua_delete(self);
	return 0;
}

static int tolua_collect_Ember__OgreView__Gui__Adapters__FloatComboboxAdapter_Atlas__Message__Element_ (lua_State* tolua_S)
{
 Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>*) tolua_tousertype(tolua_S,1,0);
	Mtolua_delete(self);
	return 0;
}

static int tolua_collect_Atlas__Message__Element (lua_State* tolua_S)
{
 Atlas::Message::Element* self = (Atlas::Message::Element*) tolua_tousertype(tolua_S,1,0);
	Mtolua_delete(self);
	return 0;
}

static int tolua_collect_Ember__OgreView__Gui__Adapters__IntComboboxAdapter_Atlas__Message__Element_ (lua_State* tolua_S)
{
 Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>*) tolua_tousertype(tolua_S,1,0);
	Mtolua_delete(self);
	return 0;
}
#endif


/* function to register type */
static void tolua_reg_types (lua_State* tolua_S)
{
 tolua_usertype(tolua_S,"CEGUI::String");
 tolua_usertype(tolua_S,"AdapterBase<ValueType>");
 tolua_usertype(tolua_S,"Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>");
 tolua_usertype(tolua_S,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>");
 tolua_usertype(tolua_S,"Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>");
 tolua_usertype(tolua_S,"Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>");
 tolua_usertype(tolua_S,"sigc::signal<void>");
 tolua_usertype(tolua_S,"Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>");
 tolua_usertype(tolua_S,"Atlas::Message::Element");
 tolua_usertype(tolua_S,"CEGUI::Window");
}

/* method: delete of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_delete00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_delete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
#endif
  Mtolua_delete(self);
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: setValue of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_setValue00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_setValue00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
  const Atlas::Message::Element* element = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setValue'", NULL);
#endif
  {
   self->setValue(*element);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'setValue'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: getValue of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getValue00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getValue00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getValue'", NULL);
#endif
  {
   const Atlas::Message::Element& tolua_ret = (const Atlas::Message::Element&)  self->getValue();
    tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Atlas::Message::Element");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getValue'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: getOriginalValue of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getOriginalValue00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getOriginalValue00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (const Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOriginalValue'", NULL);
#endif
  {
   const Atlas::Message::Element& tolua_ret = (const Atlas::Message::Element&)  self->getOriginalValue();
    tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Atlas::Message::Element");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getOriginalValue'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* get function: EventValueChanged of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_get_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element__EventValueChanged
static int tolua_get_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element__EventValueChanged(lua_State* tolua_S)
{
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EventValueChanged'",NULL);
#endif
   tolua_pushusertype(tolua_S,(void*)&self->EventValueChanged,"sigc::signal<void>");
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: EventValueChanged of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_set_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element__EventValueChanged
static int tolua_set_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element__EventValueChanged(lua_State* tolua_S)
{
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'EventValueChanged'",NULL);
  if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"sigc::signal<void>",0,&tolua_err)))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  self->EventValueChanged = *((sigc::signal<void>*)  tolua_tousertype(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* method: updateGui of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_updateGui00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_updateGui00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
  const Atlas::Message::Element* element = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'updateGui'", NULL);
#endif
  {
   self->updateGui(*element);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'updateGui'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: hasChanges of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_hasChanges00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_hasChanges00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hasChanges'", NULL);
#endif
  {
   bool tolua_ret = (bool)  self->hasChanges();
   tolua_pushboolean(tolua_S,(bool)tolua_ret);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'hasChanges'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: getChangedElement of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getChangedElement00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getChangedElement00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getChangedElement'", NULL);
#endif
  {
   Atlas::Message::Element tolua_ret = (Atlas::Message::Element)  self->getChangedElement();
   {
#ifdef __cplusplus
    void* tolua_obj = Mtolua_new((Atlas::Message::Element)(tolua_ret));
     tolua_pushusertype(tolua_S,tolua_obj,"Atlas::Message::Element");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
#else
    void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Atlas::Message::Element));
     tolua_pushusertype(tolua_S,tolua_obj,"Atlas::Message::Element");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
#endif
   }
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getChangedElement'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: remove of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_remove00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_remove00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'remove'", NULL);
#endif
  {
   self->remove();
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'remove'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: isRemoved of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_isRemoved00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_isRemoved00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (const Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isRemoved'", NULL);
#endif
  {
   bool tolua_ret = (bool)  self->isRemoved();
   tolua_pushboolean(tolua_S,(bool)tolua_ret);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'isRemoved'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: addSuggestion of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_addSuggestion00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_addSuggestion00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
  const std::string suggestedValue = ((const std::string)  tolua_tocppstring(tolua_S,2,0));
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addSuggestion'", NULL);
#endif
  {
   self->addSuggestion(suggestedValue);
   tolua_pushcppstring(tolua_S,(const char*)suggestedValue);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'addSuggestion'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: _setSelfUpdate of class  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase__setSelfUpdate00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase__setSelfUpdate00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
  bool selfUpdate = ((bool)  tolua_toboolean(tolua_S,2,0));
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function '_setSelfUpdate'", NULL);
#endif
  {
   self->_setSelfUpdate(selfUpdate);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function '_setSelfUpdate'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new of class  Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_new00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const CEGUI::String",0,&tolua_err)) ||
     (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"const CEGUI::String",0,&tolua_err)) ||
     !tolua_isnoobj(tolua_S,6,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  const CEGUI::String* propertyName = ((const CEGUI::String*)  tolua_tousertype(tolua_S,4,0));
  const CEGUI::String* eventChangedName = ((const CEGUI::String*)  tolua_tousertype(tolua_S,5,0));
  {
   Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>* tolua_ret = (Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>)(*value,widget,*propertyName,*eventChangedName));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new_local of class  Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_new00_local
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_new00_local(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const CEGUI::String",0,&tolua_err)) ||
     (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"const CEGUI::String",0,&tolua_err)) ||
     !tolua_isnoobj(tolua_S,6,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  const CEGUI::String* propertyName = ((const CEGUI::String*)  tolua_tousertype(tolua_S,4,0));
  const CEGUI::String* eventChangedName = ((const CEGUI::String*)  tolua_tousertype(tolua_S,5,0));
  {
   Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>* tolua_ret = (Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>)(*value,widget,*propertyName,*eventChangedName));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: delete of class  Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_delete00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_delete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>* self = (Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
#endif
  Mtolua_delete(self);
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: updateGui of class  Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_updateGui00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_updateGui00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>* self = (Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>*)  tolua_tousertype(tolua_S,1,0);
  const Atlas::Message::Element* element = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'updateGui'", NULL);
#endif
  {
   self->updateGui(*element);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'updateGui'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new of class  Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_new00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  {
   Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>* tolua_ret = (Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>)(*value,widget));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new_local of class  Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_new00_local
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_new00_local(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  {
   Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>* tolua_ret = (Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>)(*value,widget));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: delete of class  Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_delete00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_delete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
#endif
  Mtolua_delete(self);
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new of class  Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_new00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  {
   Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>* tolua_ret = (Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>)(*value,widget));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new_local of class  Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_new00_local
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_new00_local(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  {
   Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>* tolua_ret = (Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>)(*value,widget));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: delete of class  Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_delete00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_delete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
#endif
  Mtolua_delete(self);
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new of class  Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_new00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  {
   Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>* tolua_ret = (Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>)(*value,widget));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: new_local of class  Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_new00_local
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_new00_local(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Atlas::Message::Element",0,&tolua_err)) ||
     !tolua_isusertype(tolua_S,3,"CEGUI::Window",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Atlas::Message::Element* value = ((const Atlas::Message::Element*)  tolua_tousertype(tolua_S,2,0));
  CEGUI::Window* widget = ((CEGUI::Window*)  tolua_tousertype(tolua_S,3,0));
  {
   Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>* tolua_ret = (Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>*)  Mtolua_new((Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>)(*value,widget));
    tolua_pushusertype(tolua_S,(void*)tolua_ret,"Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: delete of class  Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element> */
#ifndef TOLUA_DISABLE_tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_delete00
static int tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_delete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>* self = (Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
#endif
  Mtolua_delete(self);
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* Open function */
TOLUA_API int tolua_Adapters_open (lua_State* tolua_S)
{
 tolua_open(tolua_S);
 tolua_reg_types(tolua_S);
 tolua_module(tolua_S,NULL,0);
 tolua_beginmodule(tolua_S,NULL);
  tolua_module(tolua_S,"Ember",0);
  tolua_beginmodule(tolua_S,"Ember");
   tolua_module(tolua_S,"OgreView",0);
   tolua_beginmodule(tolua_S,"OgreView");
    tolua_module(tolua_S,"Gui",0);
    tolua_beginmodule(tolua_S,"Gui");
     tolua_module(tolua_S,"Adapters",0);
     tolua_beginmodule(tolua_S,"Adapters");
      #ifdef __cplusplus
      tolua_cclass(tolua_S,"AtlasAdapterBase","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>","",tolua_collect_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element_);
      #else
      tolua_cclass(tolua_S,"AtlasAdapterBase","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>","",NULL);
      #endif
      tolua_beginmodule(tolua_S,"AtlasAdapterBase");
       tolua_function(tolua_S,"delete",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_delete00);
       tolua_function(tolua_S,"setValue",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_setValue00);
       tolua_function(tolua_S,"getValue",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getValue00);
       tolua_function(tolua_S,"getOriginalValue",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getOriginalValue00);
       tolua_variable(tolua_S,"EventValueChanged",tolua_get_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element__EventValueChanged,tolua_set_Ember__OgreView__Gui__Adapters__AdapterBase_Atlas__Message__Element__EventValueChanged);
       tolua_function(tolua_S,"updateGui",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_updateGui00);
       tolua_function(tolua_S,"hasChanges",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_hasChanges00);
       tolua_function(tolua_S,"getChangedElement",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_getChangedElement00);
       tolua_function(tolua_S,"remove",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_remove00);
       tolua_function(tolua_S,"isRemoved",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_isRemoved00);
       tolua_function(tolua_S,"addSuggestion",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase_addSuggestion00);
       tolua_function(tolua_S,"_setSelfUpdate",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasAdapterBase__setSelfUpdate00);
      tolua_endmodule(tolua_S);
     tolua_endmodule(tolua_S);
    tolua_endmodule(tolua_S);
   tolua_endmodule(tolua_S);
  tolua_endmodule(tolua_S);
  tolua_module(tolua_S,"Ember",0);
  tolua_beginmodule(tolua_S,"Ember");
   tolua_module(tolua_S,"OgreView",0);
   tolua_beginmodule(tolua_S,"OgreView");
    tolua_module(tolua_S,"Gui",0);
    tolua_beginmodule(tolua_S,"Gui");
     tolua_module(tolua_S,"Adapters",0);
     tolua_beginmodule(tolua_S,"Adapters");
      #ifdef __cplusplus
      tolua_cclass(tolua_S,"AtlasStringGenericPropertyAdapter","Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>","AdapterBase<ValueType>",tolua_collect_Ember__OgreView__Gui__Adapters__GenericPropertyAdapter_Atlas__Message__Element_std__string_);
      #else
      tolua_cclass(tolua_S,"AtlasStringGenericPropertyAdapter","Ember::OgreView::Gui::Adapters::GenericPropertyAdapter<Atlas::Message::Element,std::string>","AdapterBase<ValueType>",NULL);
      #endif
      tolua_beginmodule(tolua_S,"AtlasStringGenericPropertyAdapter");
       tolua_function(tolua_S,"new",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_new00);
       tolua_function(tolua_S,"new_local",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_new00_local);
       tolua_function(tolua_S,".call",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_new00_local);
       tolua_function(tolua_S,"delete",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_delete00);
       tolua_function(tolua_S,"updateGui",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringGenericPropertyAdapter_updateGui00);
      tolua_endmodule(tolua_S);
     tolua_endmodule(tolua_S);
    tolua_endmodule(tolua_S);
   tolua_endmodule(tolua_S);
  tolua_endmodule(tolua_S);
  tolua_module(tolua_S,"Ember",0);
  tolua_beginmodule(tolua_S,"Ember");
   tolua_module(tolua_S,"OgreView",0);
   tolua_beginmodule(tolua_S,"OgreView");
    tolua_module(tolua_S,"Gui",0);
    tolua_beginmodule(tolua_S,"Gui");
     tolua_module(tolua_S,"Adapters",0);
     tolua_beginmodule(tolua_S,"Adapters");
      #ifdef __cplusplus
      tolua_cclass(tolua_S,"AtlasStringComboboxAdapter","Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",tolua_collect_Ember__OgreView__Gui__Adapters__StringComboboxAdapter_Atlas__Message__Element_);
      #else
      tolua_cclass(tolua_S,"AtlasStringComboboxAdapter","Ember::OgreView::Gui::Adapters::StringComboboxAdapter<Atlas::Message::Element>","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",NULL);
      #endif
      tolua_beginmodule(tolua_S,"AtlasStringComboboxAdapter");
       tolua_function(tolua_S,"new",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_new00);
       tolua_function(tolua_S,"new_local",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_new00_local);
       tolua_function(tolua_S,".call",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_new00_local);
       tolua_function(tolua_S,"delete",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasStringComboboxAdapter_delete00);
      tolua_endmodule(tolua_S);
      #ifdef __cplusplus
      tolua_cclass(tolua_S,"AtlasIntComboboxAdapter","Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",tolua_collect_Ember__OgreView__Gui__Adapters__IntComboboxAdapter_Atlas__Message__Element_);
      #else
      tolua_cclass(tolua_S,"AtlasIntComboboxAdapter","Ember::OgreView::Gui::Adapters::IntComboboxAdapter<Atlas::Message::Element>","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",NULL);
      #endif
      tolua_beginmodule(tolua_S,"AtlasIntComboboxAdapter");
       tolua_function(tolua_S,"new",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_new00);
       tolua_function(tolua_S,"new_local",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_new00_local);
       tolua_function(tolua_S,".call",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_new00_local);
       tolua_function(tolua_S,"delete",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasIntComboboxAdapter_delete00);
      tolua_endmodule(tolua_S);
      #ifdef __cplusplus
      tolua_cclass(tolua_S,"AtlasFloatComboboxAdapter","Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",tolua_collect_Ember__OgreView__Gui__Adapters__FloatComboboxAdapter_Atlas__Message__Element_);
      #else
      tolua_cclass(tolua_S,"AtlasFloatComboboxAdapter","Ember::OgreView::Gui::Adapters::FloatComboboxAdapter<Atlas::Message::Element>","Ember::OgreView::Gui::Adapters::AdapterBase<Atlas::Message::Element>",NULL);
      #endif
      tolua_beginmodule(tolua_S,"AtlasFloatComboboxAdapter");
       tolua_function(tolua_S,"new",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_new00);
       tolua_function(tolua_S,"new_local",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_new00_local);
       tolua_function(tolua_S,".call",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_new00_local);
       tolua_function(tolua_S,"delete",tolua_Adapters_Ember_OgreView_Gui_Adapters_AtlasFloatComboboxAdapter_delete00);
      tolua_endmodule(tolua_S);
     tolua_endmodule(tolua_S);
    tolua_endmodule(tolua_S);
   tolua_endmodule(tolua_S);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}


#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
 TOLUA_API int luaopen_Adapters (lua_State* tolua_S) {
 return tolua_Adapters_open(tolua_S);
};
#endif

