You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
659 B
C++
38 lines
659 B
C++
#pragma once
|
|
//
|
|
#include <string>
|
|
#include <vector>
|
|
//
|
|
|
|
using namespace std;
|
|
|
|
class CICameraId
|
|
{
|
|
public:
|
|
CICameraId(void);
|
|
~CICameraId(void);
|
|
|
|
enum eCODE_TYPE {
|
|
eSTATIC,
|
|
eSOS,
|
|
eEOS,
|
|
MAX_CODE_TYPE,
|
|
};
|
|
|
|
virtual string id(int nIndex) = 0;
|
|
virtual string sos(int nIndex) = 0;
|
|
virtual string eos(int nIndex) = 0;
|
|
|
|
virtual int index(string strId) = 0;
|
|
|
|
virtual int indexSOS(string strId) = 0;
|
|
virtual int indexEOS(string strId) = 0;
|
|
|
|
protected:
|
|
string <rim(string & str);
|
|
string &rtrim(string & str);
|
|
string &trim(string & str);
|
|
|
|
vector<string> m_vecCode[MAX_CODE_TYPE];
|
|
};
|