2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
// CIL.h: interface for the CCIL class.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if !defined(AFX_CIL_H__2B094D96_25D9_11D6_B9C6_0040F674BE6A__INCLUDED_)
|
|
|
|
#define AFX_CIL_H__2B094D96_25D9_11D6_B9C6_0040F674BE6A__INCLUDED_
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
#define MAXNBCI 4096 // 512
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
class CCIL {
|
|
|
|
bool isRange(const char *s) const;
|
|
|
|
int getRangeBegin(const char *s) const;
|
|
|
|
int getRangeEnd(const char *s) const;
|
|
|
|
void strToColorIndex(const char *s, CCIL &cil, const int maxIndex);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
int m_nb;
|
|
|
|
int m_ci[MAXNBCI];
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
CCIL() : m_nb(0){};
|
|
|
|
virtual ~CCIL() { m_nb = 0; };
|
|
|
|
void set(const char *s, const int maxIndex);
|
|
|
|
bool isIn(const int ci);
|
|
|
|
void print();
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
#endif // !defined(AFX_CIL_H__2B094D96_25D9_11D6_B9C6_0040F674BE6A__INCLUDED_)
|