1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/IO/StreamAsyncResult.h
Halofreak1990 1c277b2038 Fixed a couple of errors, removed Dictionary references from the ContentManager to get it to compile.
Now, the only thing keeping XFX from a full compile is my stupid attempt at Asynchronous IO. Will look at that, but most likely, I will comment it out and just get a new Demo out before New Year.
2010-12-27 01:01:25 +00:00

50 lines
1.2 KiB
C++

/********************************************************
* StreamAsyncResult.h *
* *
* XFX StreamAsyncResult definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _SYSTEM_IO_STREAMASYNCRESULT_
#define _SYSTEM_IO_STREAMASYNCRESULT_
#include "../Exception.h"
#include "../Interfaces.h"
#include "../Types.h"
#include "../Threading/WaitHandle.h"
namespace System
{
namespace IO
{
/// <summary>
///
/// </summary>
class StreamAsyncResult : public IAsyncResult
{
Object* _state;
bool completed;
bool done;
Exception* exc;
int _nbytes;
public:
Object* ASyncState();
Threading::WaitHandle AsyncWaitHandle();
virtual bool CompletedSynchronously();
bool IsCompleted();
Exception* Exception_();
int NBytes();
bool Done;
StreamAsyncResult(Object* state);
StreamAsyncResult(const IAsyncResult* &obj);
StreamAsyncResult(const StreamAsyncResult &obj);
void SetComplete(Exception* e);
void SetComplete(Exception* e, int nbytes);
};
}
}
#endif //_SYSTEM_IO_STREAMASYNCRESULT_