/* * channelmap.h: TVM2VDR plugin for the Video Disk Recorder * * See the README file for copyright information and how to reach the author. * */ #ifndef _CHANNELMAP__H #define _CHANNELMAP__H #include #include #include #include #include #include using namespace std; typedef vector cChanVec; typedef map cChanMap; typedef map cVPSMap; //*************************************************************************** // cChannelMap //*************************************************************************** class cChannelMap { public: cChannelMap(const char* file); ~cChannelMap(); cChanMap chanmap; cVPSMap vpsmap; int ReloadChannelMap(); int GetChanCount(int tvmid); char* GetChanStr(int tvmid, int index); tChannelID GetChanID(int tvmid, int index); int GetTvmidOfChannel(const char* channel); int GetTotalCount() { return totalCount; } private: int load(); char* fileName; int totalCount; // total count of channels over all tvmid's }; //*************************************************************************** #endif // _CHANNELMAP__H