AppCore
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
EAdvertisementManagerPr Class Reference
Collaboration diagram for EAdvertisementManagerPr:
Collaboration graph
[legend]

Public Member Functions

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)
 
EAdvertisementChooseRandomAdvertisement (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)
 

Static Public Member Functions

static bool CompareByDisplayCount (EAdvertisement *ad1, EAdvertisement *ad2)
 

Public Attributes

EAdvertisementCol mAdvertisements
 
bool mIsReaded
 
bool mAreAmountsReaded
 
EBusstops mBusstops
 
EAmounts mAmounts
 
unsigned long mUnitPrice
 
EAdvertisementCommMngmAdvertisementCommMng
 

Member Function Documentation

◆ 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"

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ChooseRandomAdvertisement()

EAdvertisement * EAdvertisementManagerPr::ChooseRandomAdvertisement ( EAdvertisementCol advertisements,
unsigned short  engaged 
)

srand ( time(NULL) );

easy way, how to choose advertisement

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearAdvertisements()

void EAdvertisementManagerPr::ClearAdvertisements ( )
Here is the caller graph for this function:

◆ ClearOldDaySpendsFiles()

void EAdvertisementManagerPr::ClearOldDaySpendsFiles ( )

zmaze vsetky subory s dennymi spendami starsie ako den (necha len dnesne)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CompareByDisplayCount()

bool EAdvertisementManagerPr::CompareByDisplayCount ( EAdvertisement ad1,
EAdvertisement ad2 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindSuitableAdvertisements()

long EAdvertisementManagerPr::FindSuitableAdvertisements ( EAdvertisementCol advertisements,
unsigned long  busstopIDOrigin,
unsigned long  busstopIDDestination,
unsigned char  discountType,
unsigned char  cardType 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFileName()

string EAdvertisementManagerPr::GetFileName ( const string &  pathName)
Here is the caller graph for this function:

◆ IsDaySpendFile()

bool EAdvertisementManagerPr::IsDaySpendFile ( const string &  fileName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsOldFile()

bool EAdvertisementManagerPr::IsOldFile ( const string &  fileName)
Here is the caller graph for this function:

◆ ReadAmounts()

void EAdvertisementManagerPr::ReadAmounts ( string  pathFile)
Here is the caller graph for this function:

◆ ReadBusstops()

void EAdvertisementManagerPr::ReadBusstops ( EXMLNode *  node)

◆ ScanDirectory()

vector< string > EAdvertisementManagerPr::ScanDirectory ( const string &  path,
bool  fileNameOnly 
)
Here is the caller graph for this function:

Member Data Documentation

◆ mAdvertisementCommMng

EAdvertisementCommMng* EAdvertisementManagerPr::mAdvertisementCommMng

◆ mAdvertisements

EAdvertisementCol EAdvertisementManagerPr::mAdvertisements

◆ mAmounts

EAmounts EAdvertisementManagerPr::mAmounts

◆ mAreAmountsReaded

bool EAdvertisementManagerPr::mAreAmountsReaded

◆ mBusstops

EBusstops EAdvertisementManagerPr::mBusstops

◆ mIsReaded

bool EAdvertisementManagerPr::mIsReaded

◆ mUnitPrice

unsigned long EAdvertisementManagerPr::mUnitPrice

The documentation for this class was generated from the following file: