GlsMenu
gls_palette.h File Reference

This file defines a namespace that provides a palette of predefined colors. More...

#include "gls_color.h"
#include <string>

Go to the source code of this file.

Namespaces

 GlsPalette
 

Enumerations

enum  GlsPalette::Color_t {
  GlsPalette::eCLEAR,
  GlsPalette::eBLACK,
  GlsPalette::eWHITE,
  GlsPalette::eRED,
  GlsPalette::eGREEN,
  GlsPalette::eDARK_GREEN,
  GlsPalette::eLIGHT_GREEN,
  GlsPalette::eBLUE,
  GlsPalette::eYELLOW,
  GlsPalette::ePALE_YELLOW,
  GlsPalette::eCYAN,
  GlsPalette::eMAGENTA,
  GlsPalette::eBROWN,
  GlsPalette::eAMBER,
  GlsPalette::eGREY,
  GlsPalette::LAST_COLOR = eGREY
}
 

Functions

const disti::glsColor & GlsPalette::ColorFromName (const std::string &name)
 
std::istream & operator>> (std::istream &instr, GlsPalette::Color_t &color)
 
std::ostream & operator<< (std::ostream &outstr, GlsPalette::Color_t color)
 

Variables

static const char * GlsPalette::COLOR_NAME [LAST_COLOR+1]
 Used to convert a string into the proper color enum. More...
 
static const disti::glsColor GlsPalette::COLOR [LAST_COLOR+1]
 Used to convert a color enum into a glsColor value. More...
 
static const disti::glsColor & GlsPalette::CLEAR = COLOR[ eCLEAR ]
 
static const disti::glsColor & GlsPalette::BLACK = COLOR[ eBLACK ]
 
static const disti::glsColor & GlsPalette::WHITE = COLOR[ eWHITE ]
 
static const disti::glsColor & GlsPalette::RED = COLOR[ eRED ]
 
static const disti::glsColor & GlsPalette::GREEN = COLOR[ eGREEN ]
 
static const disti::glsColor & GlsPalette::DARK_GREEN = COLOR[ eDARK_GREEN ]
 
static const disti::glsColor & GlsPalette::LIGHT_GREEN = COLOR[ eLIGHT_GREEN ]
 
static const disti::glsColor & GlsPalette::BLUE = COLOR[ eBLUE ]
 
static const disti::glsColor & GlsPalette::YELLOW = COLOR[ eYELLOW ]
 
static const disti::glsColor & GlsPalette::PALE_YELLOW = COLOR[ ePALE_YELLOW ]
 
static const disti::glsColor & GlsPalette::CYAN = COLOR[ eCYAN ]
 
static const disti::glsColor & GlsPalette::MAGENTA = COLOR[ eMAGENTA ]
 
static const disti::glsColor & GlsPalette::BROWN = COLOR[ eBROWN ]
 
static const disti::glsColor & GlsPalette::AMBER = COLOR[ eAMBER ]
 
static const disti::glsColor & GlsPalette::GREY = COLOR[ eGREY ]
 

Detailed Description

This file defines a namespace that provides a palette of predefined colors.

Copyright Information

Copyright (c) 2012 The DiSTI Corporation.
11301 Corporate Blvd; Suite 100
Orlando, Florida 32817
USA

All rights reserved.

This Software contains proprietary trade secrets of DiSTI and may not be reproduced, in whole or part, in any form, or by any means of electronic, mechanical, or otherwise, without the written permission of DiSTI. Said permission may be derived through the purchase of applicable DiSTI product licenses which detail the distribution rights of this content and any Derivative Works based on this or other copyrighted DiSTI Software.

NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND, AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.

LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT EXCEED FIVE DOLLARS (US$5.00).

The aforementioned terms and restrictions are governed by the laws of the State of Florida and the United States of America.

Definition in file gls_palette.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  outstr,
GlsPalette::Color_t  color 
)
inline

Definition at line 175 of file gls_palette.h.

References GlsPalette::COLOR_NAME.

std::istream& operator>> ( std::istream &  instr,
GlsPalette::Color_t color 
)
inline

Definition at line 156 of file gls_palette.h.

References GlsPalette::COLOR_NAME, GlsPalette::eBLACK, and GlsPalette::LAST_COLOR.