Alex Bikfalvi
SimStream Documentation
StreamSegment.h
00001 #pragma once 00002 00003 #include "StreamFrame.h" 00004 00005 class CStreamSegment 00006 { 00007 private: 00008 __uint32 stream; 00009 __uint32 index; 00010 __uint32 size; 00011 __uint32 completed; 00012 bool receiving; 00013 00014 CStreamFrame* frames; 00015 00016 public: 00017 CStreamSegment(__uint32 size); 00018 ~CStreamSegment(); 00019 00020 inline __uint32 Stream() { return this->stream; } 00021 inline __uint32 Index() { return this->index; } 00022 inline __uint32 Size() { return this->size; } 00023 00024 inline bool IsComplete() { return this->completed == this->size; } 00025 inline void Receiving(bool receiving) { this->receiving = receiving; } 00026 inline bool IsReceiving() { return this->receiving; } 00027 00028 void Add(CStreamFrame frame); 00029 void Reset(__uint32 stream, __uint32 index); 00030 00031 inline CStreamFrame operator [](__uint32 index) { return this->frames[index]; } 00032 };
Last updated: February 8, 2011