Shinya Kitaoka 810553
#pragma once
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
Shinya Kitaoka 120a6e
#define MAXNBCI 4096  // 512
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class CCIL {
Shinya Kitaoka 120a6e
  bool isRange(const char *s) const;
Shinya Kitaoka 120a6e
  int getRangeBegin(const char *s) const;
Shinya Kitaoka 120a6e
  int getRangeEnd(const char *s) const;
Shinya Kitaoka 120a6e
  void strToColorIndex(const char *s, CCIL &cil, const int maxIndex);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  int m_nb;
Shinya Kitaoka 120a6e
  int m_ci[MAXNBCI];
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  CCIL() : m_nb(0){};
Shinya Kitaoka 120a6e
  virtual ~CCIL() { m_nb = 0; };
Shinya Kitaoka 120a6e
  void set(const char *s, const int maxIndex);
Shinya Kitaoka 120a6e
  bool isIn(const int ci);
Shinya Kitaoka 120a6e
  void print();
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
#endif  // !defined(AFX_CIL_H__2B094D96_25D9_11D6_B9C6_0040F674BE6A__INCLUDED_)