1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #include <iostream>
- #include <vector>
- #include <fstream>
- #ifdef RVC_OS_WIN
- #include <windows.h>
- #endif // RVC_OS_WIN
- using namespace std;
- #define HEADINI_NAME "HeadquartersLocalMediaPlay.ini"
- #define BRANCHINI_NAME "BranchLocalMediaPlay.ini"
- #define NETWORKINI_NAME "NetWorkLocalMediaPlay.ini"
- #define SECTION_GENERAL _T("General")
- #define GENERAL_MEDIANUM _T("MediaNum")
- #define SECTION_MEDIA _T("Media")
- #define MEDIA_TYPE _T("Type")
- #define MEDIA_FULLSCREEN _T("FullScreen")
- #define MEDIA_PRIMMONITOR _T("PrimMonitor")
- #define MEDIA_SIMPLEMODE _T("SimpleMode")
- #define MEDIA_PLAYINTERVAL _T("PlayInterval")
- #define MEDIA_VIDIONAMES _T("VideoNames")
- #define MEDIA_VAILDTIME _T("VaildTime")
- #define MEDIA_PLAYTIME _T("PlayTime")
- #define MEDIA_PRIORITY _T("priority")
- #define STR_NULL _T("")
- typedef struct _resourceParse
- {
- char type; //Pic:P, Video:V, Mp3:M
- bool fullScreen;
- bool primMonitor;
- bool simpleMode;
- int playInterval;
- string videoNames;
- string vaildTime;
- string playTime;
- int priority;
- string resourcePath;
- }ResourceParse;
- bool checkInPlayTime(string playTime, bool checkCurTime = false);
- bool parseResourceIni(LPCTSTR filePath, vector<ResourceParse> &ret);
- bool checkInVaildTime(string vaildTime, bool checkCurData = false);
|