//----------------------------------------------------------------------------
// wxFFileOutputStream
// extracted from ffilestr.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_FFILEOUTPUTSTREAM_H__
#define __OBJECT_WX_FFILEOUTPUTSTREAM_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxFFileOutputStream
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_FFileOutputStream);

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

}}

#endif
