WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
WXP::ColorFile Class Reference

This class reads data from a color table file and populates a ColorMap class. More...

#include "../include/ColorFile.h"

Static Public Member Functions

static int read (const char *file, ColorMap &color)
 
static int readFile (const char *file, ColorMap &color)
 

Detailed Description

This class reads data from a color table file and populates a ColorMap class.

Author
Dan Vietor

Member Function Documentation

◆ read()

int ColorFile::read ( const char *  file,
ColorMap color 
)
static

◆ readFile()

int ColorFile::readFile ( const char *  file,
ColorMap color 
)
static

Reads and decodes color data from a specific file

Parameters
fileFilename to extract color data
Return values
colorColorMap class to put color values into

References WXP::ColorMap::add(), WXP::String::getChar(), WXP::File::getLine(), WXP::ColorMap::getMax(), WXP::ColorMap::getNum(), WXP::ColorMap::getNumFill(), WXP::String::iequal(), WXP::ColorMap::init(), WXP::File::isOpen(), WXP::String::scanf(), WXP::ColorMap::setNumFill(), and WXP::String::trimWS().

Referenced by read().


The documentation for this class was generated from the following files: