|
| 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)
|
| |
| vector< string > | ScanDirectory (const string &path, bool fileNameOnly) |
| |
| bool | IsDaySpendFile (const string &fileName) |
| |
| bool | IsOldFile (const string &fileName) |
| |
| string | GetFileName (const string &pathName) |
| |
◆ ChooseAndPrint()
| 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"
◆ ChooseRandomAdvertisement()
srand ( time(NULL) );
easy way, how to choose advertisement
◆ ClearAdvertisements()
| void EAdvertisementManagerPr::ClearAdvertisements |
( |
| ) |
|
◆ ClearOldDaySpendsFiles()
| void EAdvertisementManagerPr::ClearOldDaySpendsFiles |
( |
| ) |
|
zmaze vsetky subory s dennymi spendami starsie ako den (necha len dnesne)
◆ CompareByDisplayCount()
◆ FindSuitableAdvertisements()
| long EAdvertisementManagerPr::FindSuitableAdvertisements |
( |
EAdvertisementCol & |
advertisements, |
|
|
unsigned long |
busstopIDOrigin, |
|
|
unsigned long |
busstopIDDestination, |
|
|
unsigned char |
discountType, |
|
|
unsigned char |
cardType |
|
) |
| |
◆ GetFileName()
| string EAdvertisementManagerPr::GetFileName |
( |
const string & |
pathName | ) |
|
◆ IsDaySpendFile()
| bool EAdvertisementManagerPr::IsDaySpendFile |
( |
const string & |
fileName | ) |
|
◆ IsOldFile()
| bool EAdvertisementManagerPr::IsOldFile |
( |
const string & |
fileName | ) |
|
◆ ReadAmounts()
| void EAdvertisementManagerPr::ReadAmounts |
( |
string |
pathFile | ) |
|
◆ ReadBusstops()
| void EAdvertisementManagerPr::ReadBusstops |
( |
EXMLNode * |
node | ) |
|
◆ ScanDirectory()
| vector< string > EAdvertisementManagerPr::ScanDirectory |
( |
const string & |
path, |
|
|
bool |
fileNameOnly |
|
) |
| |
◆ mAdvertisementCommMng
◆ mAdvertisements
◆ mAmounts
| EAmounts EAdvertisementManagerPr::mAmounts |
◆ mAreAmountsReaded
| bool EAdvertisementManagerPr::mAreAmountsReaded |
◆ mBusstops
◆ mIsReaded
| bool EAdvertisementManagerPr::mIsReaded |
◆ mUnitPrice
| unsigned long EAdvertisementManagerPr::mUnitPrice |
The documentation for this class was generated from the following file: