Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// CIL.h: interface for the CCIL class.
Toshihiro Shimizu 890ddd
//
Toshihiro Shimizu 890ddd
//////////////////////////////////////////////////////////////////////
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#if !defined(AFX_CIL_H__2B094D96_25D9_11D6_B9C6_0040F674BE6A__INCLUDED_)
Toshihiro Shimizu 890ddd
#define AFX_CIL_H__2B094D96_25D9_11D6_B9C6_0040F674BE6A__INCLUDED_
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#if _MSC_VER > 1000
Toshihiro Shimizu 890ddd
#pragma once
Toshihiro Shimizu 890ddd
#endif // _MSC_VER > 1000
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#define MAXNBCI 4096 //512
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class CCIL
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	bool isRange(const char *s) const;
Toshihiro Shimizu 890ddd
	int getRangeBegin(const char *s) const;
Toshihiro Shimizu 890ddd
	int getRangeEnd(const char *s) const;
Toshihiro Shimizu 890ddd
	void strToColorIndex(const char *s, CCIL &cil,
Toshihiro Shimizu 890ddd
						 const int maxIndex);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	int m_nb;
Toshihiro Shimizu 890ddd
	int m_ci[MAXNBCI];
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	CCIL() : m_nb(0){};
Toshihiro Shimizu 890ddd
	virtual ~CCIL() { m_nb = 0; };
Toshihiro Shimizu 890ddd
	void set(const char *s, const int maxIndex);
Toshihiro Shimizu 890ddd
	bool isIn(const int ci);
Toshihiro Shimizu 890ddd
	void print();
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif // !defined(AFX_CIL_H__2B094D96_25D9_11D6_B9C6_0040F674BE6A__INCLUDED_)