カラーコードを保持するクラス。 More...
#include <kanjiPrint.h>
Public Member Functions | |
Color () | |
Color (const std::string &value, const std::string &name, const bool valid=true) | |
~Color () | |
bool | isValid () const |
const std::string & | getName () const |
bool | operator== (const Color &rhs) const |
bool | operator!= (const Color &rhs) const |
Static Public Member Functions | |
static const Color | colorFor (const std::string &str) |
文字列に対応するColor objectを返す More... | |
Static Public Attributes | |
static const Color | NONE |
色指定しない(デフォルトのまま)ことを示す特別なオブジェクト More... | |
static const Color | Black |
static const Color | Red |
static const Color | Green |
static const Color | Brown |
static const Color | Blue |
static const Color | Purple |
static const Color | Cyan |
static const Color | LightGray |
static const Color | DarkGray |
static const Color | LightRed |
static const Color | LightGreen |
static const Color | Yellow |
static const Color | LightBlue |
static const Color | LightPurple |
static const Color | LightCyan |
static const Color | White |
Private Attributes | |
std::string | value |
std::string | name |
bool | valid |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Color &c) |
カラーコードを保持するクラス。
Definition at line 22 of file kanjiPrint.h.
|
inline |
osl::record::Color::Color | ( | const std::string & | value, |
const std::string & | name, | ||
const bool | valid = true |
||
) |
Definition at line 60 of file kanjiPrint.cc.
osl::record::Color::~Color | ( | ) |
Definition at line 64 of file kanjiPrint.cc.
References osl::record::kanjiNumber().
Referenced by Color().
|
static |
文字列に対応するColor objectを返す
Definition at line 40 of file kanjiPrint.cc.
References Black, Blue, Brown, caseInsentiveCompare(), Cyan, DarkGray, Green, LightBlue, LightCyan, LightGray, LightGreen, LightPurple, LightRed, NONE, Purple, Red, and Yellow.
Referenced by caseInsentiveCompare(), and operator!=().
|
inline |
Definition at line 34 of file kanjiPrint.h.
References name.
|
inline |
Definition at line 33 of file kanjiPrint.h.
References valid.
|
inline |
Definition at line 40 of file kanjiPrint.h.
References colorFor().
|
inline |
Definition at line 35 of file kanjiPrint.h.
|
friend |
|
static |
Definition at line 53 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 57 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 56 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 59 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 61 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 55 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 65 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 67 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 60 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 63 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 66 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 62 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
private |
Definition at line 30 of file kanjiPrint.h.
|
static |
色指定しない(デフォルトのまま)ことを示す特別なオブジェクト
Definition at line 52 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 58 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
static |
Definition at line 54 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().
|
private |
Definition at line 31 of file kanjiPrint.h.
Referenced by Color(), isValid(), and operator==().
|
private |
Definition at line 29 of file kanjiPrint.h.
Referenced by Color(), osl::record::operator<<(), and operator==().
|
static |
Definition at line 68 of file kanjiPrint.h.
Referenced by caseInsentiveCompare().
|
static |
Definition at line 64 of file kanjiPrint.h.
Referenced by caseInsentiveCompare(), and colorFor().