|
| void | ClearAdvertisements () |
| |
| void | ReadAmounts (string pathFile) |
| |
| long | FindSuitableAdvertisements (EAdvertisementCol &advertisements, unsigned long busstopIDOrigin, unsigned long busstopIDDestination, unsigned char discountType, unsigned char cardType) |
| |
| unsigned char * | ChooseAndPrint (EAdvertisementCol &advertisements, unsigned long &advertisementDataLength, unsigned short &advertisementHeight, unsigned long busstopIDOrigin, unsigned long deviceSNR) |
| |
| EAdvertisement * | ChooseRandomAdvertisement (EAdvertisementCol &advertisements, unsigned short engaged) |
| |
| void | ReadBusstops (EXMLNode *node) |
| |
| void | ClearOldDaySpendsFiles () |
| | zmaze vsetky subory s dennymi spendami starsie ako den (necha len dnesne) More...
|
| |
| vector< string > | ScanDirectory (const string &path, bool fileNameOnly) |
| |
| bool | IsDaySpendFile (const string &fileName) |
| |
| bool | IsOldFile (const string &fileName) |
| |
| string | GetFileName (const string &pathName) |
| |
| unsigned char * EAdvertisementManagerPr::ChooseAndPrint |
( |
EAdvertisementCol & |
advertisements, |
|
|
unsigned long & |
advertisementDataLength, |
|
|
unsigned short & |
advertisementHeight, |
|
|
unsigned long |
busstopIDOrigin, |
|
|
unsigned long |
deviceSNR |
|
) |
| |
zotriedim podla poctu zobrazeni
zamietam reklamy s prioritou 0 s pravdepodobnostou 90%
6 = bulharska konstanta, proste pri vsetkych cislach okrem jedneho zamietam
za poslednu reklamu prilepim este oznam: "Za text reklamy zodpoveda inzerent"
srand ( time(NULL) );
easy way, how to choose advertisement
| void EAdvertisementManagerPr::ClearAdvertisements |
( |
| ) |
|
| void EAdvertisementManagerPr::ClearOldDaySpendsFiles |
( |
| ) |
|
zmaze vsetky subory s dennymi spendami starsie ako den (necha len dnesne)
| long EAdvertisementManagerPr::FindSuitableAdvertisements |
( |
EAdvertisementCol & |
advertisements, |
|
|
unsigned long |
busstopIDOrigin, |
|
|
unsigned long |
busstopIDDestination, |
|
|
unsigned char |
discountType, |
|
|
unsigned char |
cardType |
|
) |
| |
| string EAdvertisementManagerPr::GetFileName |
( |
const string & |
pathName | ) |
|
| bool EAdvertisementManagerPr::IsDaySpendFile |
( |
const string & |
fileName | ) |
|
| bool EAdvertisementManagerPr::IsOldFile |
( |
const string & |
fileName | ) |
|
| void EAdvertisementManagerPr::ReadAmounts |
( |
string |
pathFile | ) |
|
| void EAdvertisementManagerPr::ReadBusstops |
( |
EXMLNode * |
node | ) |
|
| vector< string > EAdvertisementManagerPr::ScanDirectory |
( |
const string & |
path, |
|
|
bool |
fileNameOnly |
|
) |
| |
| EAmounts EAdvertisementManagerPr::mAmounts |
| bool EAdvertisementManagerPr::mAreAmountsReaded |
| bool EAdvertisementManagerPr::mIsReaded |
| unsigned long EAdvertisementManagerPr::mUnitPrice |
The documentation for this class was generated from the following file: