Alex Bikfalvi
SimStream Documentation
StreamMessageBootPushSelectRequest.cpp
00001 #include "Headers.h" 00002 #include "StreamMessageBootPushSelectRequest.h" 00003 00004 CStreamMessageBootPushSelectRequest::CStreamMessageBootPushSelectRequest( 00005 __uint32 stream, 00006 __uint32 count 00007 ) : CStreamMessage(CStreamMessage::STREAM_MESSAGE_BOOT_PUSH_SELECT_REQUEST, 64, stream) 00008 { 00009 this->type = STREAM; 00010 this->layer = 0; 00011 this->count = count; 00012 } 00013 00014 CStreamMessageBootPushSelectRequest::CStreamMessageBootPushSelectRequest( 00015 __uint32 stream, 00016 __uint32 layer, 00017 __uint32 count 00018 ) : CStreamMessage(CStreamMessage::STREAM_MESSAGE_BOOT_PUSH_SELECT_REQUEST, 96, stream) 00019 { 00020 this->type = LAYER; 00021 this->layer = layer; 00022 this->count = count; 00023 } 00024 00025 CPacket* CStreamMessageBootPushSelectRequest::Copy() 00026 { 00027 CPacket* packet; 00028 switch(this->type) 00029 { 00030 case STREAM: packet = new CStreamMessageBootPushSelectRequest( 00031 this->stream, 00032 this->count 00033 ); 00034 break; 00035 case LAYER: packet = new CStreamMessageBootPushSelectRequest( 00036 this->stream, 00037 this->layer, 00038 this->count 00039 ); 00040 break; 00041 }; 00042 00043 return packet; 00044 }
Last updated: February 8, 2011