Alex Bikfalvi
SimStream Documentation
DataSessionRecord.cpp
00001 #include "Headers.h" 00002 #include "DataSessionRecord.h" 00003 00004 void CDataSessionRecord::Set( 00005 __uint32 host, 00006 __uint32 channel, 00007 bool multicast, 00008 bool playback, 00009 __time timeClientStart, 00010 __time timeRecvStart, 00011 __time timePlayStart, 00012 __time timeClientFinish, 00013 __time delayWait, 00014 __time delaySync, 00015 __uint32 framesRecv, 00016 __uint32 framesPlay, 00017 __uint32 framesSuccessI, 00018 __uint32 framesSuccessP, 00019 __uint32 framesSuccessB, 00020 __uint32 framesFailI, 00021 __uint32 framesFailP, 00022 __uint32 framesFailB 00023 ) 00024 { 00025 this->host = host; 00026 this->channel = channel; 00027 this->multicast = multicast; 00028 this->playback = playback; 00029 00030 this->timeClientStart = timeClientStart; 00031 this->timeRecvStart = timeRecvStart; 00032 this->timePlayStart = timePlayStart; 00033 this->timeClientFinish = timeClientFinish; 00034 00035 this->delayWait = delayWait; 00036 this->delaySync = delaySync; 00037 00038 this->framesRecv = framesRecv; 00039 this->framesPlay = framesPlay; 00040 00041 this->framesSuccessI = framesSuccessI; 00042 this->framesSuccessP = framesSuccessP; 00043 this->framesSuccessB = framesSuccessB; 00044 00045 this->framesFailI = framesFailI; 00046 this->framesFailP = framesFailP; 00047 this->framesFailB = framesFailB; 00048 } 00049 00050 void CDataSessionRecord::Write(FILE* file) 00051 { 00052 fprintf(file, "%u %u %u %u %u %.9lf %.9lf %.9lf %.9lf %.9lf %.9lf %u %u %u %u %u %u %u %u\n", 00053 this->index, // 1 00054 this->host, // 2 00055 this->channel, // 3 00056 this->multicast, // 4 00057 this->playback, // 5 00058 this->timeClientStart, // 6 00059 this->timeRecvStart, // 7 00060 this->timePlayStart, // 8 00061 this->timeClientFinish, // 9 00062 this->delayWait, // 10 00063 this->delaySync, // 11 00064 this->framesRecv, // 12 00065 this->framesPlay, // 13 00066 this->framesSuccessI, // 14 00067 this->framesSuccessP, // 15 00068 this->framesSuccessB, // 16 00069 this->framesFailI, // 17 00070 this->framesFailP, // 18 00071 this->framesFailB // 19 00072 ); 00073 }
Last updated: February 8, 2011