/*
** Lua binding: Domain
** Generated automatically by tolua++-1.0.92 on Fri Feb 21 16:22:32 2014.
*/

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

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

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

#include "domain/EntityTalk.h"

/* function to register type */
static void tolua_reg_types (lua_State* tolua_S)
{
 tolua_usertype(tolua_S,"std::vector<std::string>");
 tolua_usertype(tolua_S,"Ember::Domain::EntityTalk");
}

/* method: getMessage of class  Ember::Domain::EntityTalk */
#ifndef TOLUA_DISABLE_tolua_Domain_Ember_Domain_EntityTalk_getMessage00
static int tolua_Domain_Ember_Domain_EntityTalk_getMessage00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::Domain::EntityTalk",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::Domain::EntityTalk* self = (const Ember::Domain::EntityTalk*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getMessage'", NULL);
#endif
  {
   const std::string tolua_ret = (const std::string)  self->getMessage();
   tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getMessage'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: isAddressedToNone of class  Ember::Domain::EntityTalk */
#ifndef TOLUA_DISABLE_tolua_Domain_Ember_Domain_EntityTalk_isAddressedToNone00
static int tolua_Domain_Ember_Domain_EntityTalk_isAddressedToNone00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::Domain::EntityTalk",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::Domain::EntityTalk* self = (const Ember::Domain::EntityTalk*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isAddressedToNone'", NULL);
#endif
  {
   bool tolua_ret = (bool)  self->isAddressedToNone();
   tolua_pushboolean(tolua_S,(bool)tolua_ret);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'isAddressedToNone'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: isAddressedToEntity of class  Ember::Domain::EntityTalk */
#ifndef TOLUA_DISABLE_tolua_Domain_Ember_Domain_EntityTalk_isAddressedToEntity00
static int tolua_Domain_Ember_Domain_EntityTalk_isAddressedToEntity00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::Domain::EntityTalk",0,&tolua_err) ||
     !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::Domain::EntityTalk* self = (const Ember::Domain::EntityTalk*)  tolua_tousertype(tolua_S,1,0);
  const std::string entityId = ((const std::string)  tolua_tocppstring(tolua_S,2,0));
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isAddressedToEntity'", NULL);
#endif
  {
   bool tolua_ret = (bool)  self->isAddressedToEntity(entityId);
   tolua_pushboolean(tolua_S,(bool)tolua_ret);
   tolua_pushcppstring(tolua_S,(const char*)entityId);
  }
 }
 return 2;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'isAddressedToEntity'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: isAddressedToEntityOrNone of class  Ember::Domain::EntityTalk */
#ifndef TOLUA_DISABLE_tolua_Domain_Ember_Domain_EntityTalk_isAddressedToEntityOrNone00
static int tolua_Domain_Ember_Domain_EntityTalk_isAddressedToEntityOrNone00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::Domain::EntityTalk",0,&tolua_err) ||
     !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::Domain::EntityTalk* self = (const Ember::Domain::EntityTalk*)  tolua_tousertype(tolua_S,1,0);
  const std::string entityId = ((const std::string)  tolua_tocppstring(tolua_S,2,0));
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isAddressedToEntityOrNone'", NULL);
#endif
  {
   bool tolua_ret = (bool)  self->isAddressedToEntityOrNone(entityId);
   tolua_pushboolean(tolua_S,(bool)tolua_ret);
   tolua_pushcppstring(tolua_S,(const char*)entityId);
  }
 }
 return 2;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'isAddressedToEntityOrNone'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: getAddressedEntityIds of class  Ember::Domain::EntityTalk */
#ifndef TOLUA_DISABLE_tolua_Domain_Ember_Domain_EntityTalk_getAddressedEntityIds00
static int tolua_Domain_Ember_Domain_EntityTalk_getAddressedEntityIds00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::Domain::EntityTalk",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::Domain::EntityTalk* self = (const Ember::Domain::EntityTalk*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAddressedEntityIds'", NULL);
#endif
  {
   const std::vector<std::string>& tolua_ret = (const std::vector<std::string>&)  self->getAddressedEntityIds();
    tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const std::vector<std::string>");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getAddressedEntityIds'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* method: getSuggestedResponses of class  Ember::Domain::EntityTalk */
#ifndef TOLUA_DISABLE_tolua_Domain_Ember_Domain_EntityTalk_getSuggestedResponses00
static int tolua_Domain_Ember_Domain_EntityTalk_getSuggestedResponses00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"const Ember::Domain::EntityTalk",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const Ember::Domain::EntityTalk* self = (const Ember::Domain::EntityTalk*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getSuggestedResponses'", NULL);
#endif
  {
   const std::vector<std::string>& tolua_ret = (const std::vector<std::string>&)  self->getSuggestedResponses();
    tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const std::vector<std::string>");
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getSuggestedResponses'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* Open function */
TOLUA_API int tolua_Domain_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,"Domain",0);
   tolua_beginmodule(tolua_S,"Domain");
    tolua_cclass(tolua_S,"EntityTalk","Ember::Domain::EntityTalk","",NULL);
    tolua_beginmodule(tolua_S,"EntityTalk");
     tolua_function(tolua_S,"getMessage",tolua_Domain_Ember_Domain_EntityTalk_getMessage00);
     tolua_function(tolua_S,"isAddressedToNone",tolua_Domain_Ember_Domain_EntityTalk_isAddressedToNone00);
     tolua_function(tolua_S,"isAddressedToEntity",tolua_Domain_Ember_Domain_EntityTalk_isAddressedToEntity00);
     tolua_function(tolua_S,"isAddressedToEntityOrNone",tolua_Domain_Ember_Domain_EntityTalk_isAddressedToEntityOrNone00);
     tolua_function(tolua_S,"getAddressedEntityIds",tolua_Domain_Ember_Domain_EntityTalk_getAddressedEntityIds00);
     tolua_function(tolua_S,"getSuggestedResponses",tolua_Domain_Ember_Domain_EntityTalk_getSuggestedResponses00);
    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_Domain (lua_State* tolua_S) {
 return tolua_Domain_open(tolua_S);
};
#endif

