//----------------------------------------------------------------------------
// wxTCPServer
// extracted from tcpservr.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_TCPSERVER_H__
#define __OBJECT_WX_TCPSERVER_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxTCPServer
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_TCPServer);

//----------------------------------------------------------------------------
// Object declaration for wxTCPServer
//----------------------------------------------------------------------------
class Object_wx_TCPServer : public Object_wx_ServerBase {
public:
	Gura_DeclareObjectAccessor(wx_TCPServer)
public:
	inline Object_wx_TCPServer(wxTCPServer *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_ServerBase(Gura_UserClass(wx_TCPServer), pEntity, pObserver, ownerFlag) {}
	inline Object_wx_TCPServer(Class *pClass, wxTCPServer *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_ServerBase(pClass, pEntity, pObserver, ownerFlag) {}
	virtual ~Object_wx_TCPServer();
	virtual Object *Clone() const;
	virtual String ToString(Signal sig, bool exprFlag);
	inline wxTCPServer *GetEntity() {
		return dynamic_cast<wxTCPServer *>(_pEntity);
	}
	inline wxTCPServer *ReleaseEntity() {
		wxTCPServer *pEntity = GetEntity();
		InvalidateEntity();
		return pEntity;
	}
	inline bool IsInvalid(Signal sig) const {
		if (_pEntity != NULL) return false;
		SetError_InvalidWxObject(sig, "wxTCPServer");
		return true;
	}
public:
	static void OnModuleEntry(Environment &env, Signal sig);
};

}}

#endif
