Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

dotdefs.cc File Reference

#include <sys/types.h>
#include "dotdefs.h"

Go to the source code of this file.

Compounds

struct  OptionInteger
struct  OptionString

Functions

void dotDefsSetErrorStream (std::ostream &e=std::cerr)
void setColor (string s, string *c)
void setFontName (string s, string *c)
void setRatio (string s, string *c)
void setPageSize (string s, string *c)
void setBool (string s, string *c)
void setNodeFifo (string s, string *c)
void addOptionString (string p, string q)
void setInt (int n, int *c)
void addOptionInteger (string p, int n)

Variables

std::ostream * g_errorStream = &std::cerr
const int nrColors = 18
const char * colors [nrColors]
const int nrFonts = 3
const char * fontNames [nrFonts]
const int nrRatios = 3
const char * ratios [nrRatios]
const int nrOptionStrings = 18
OptionString optionStrings [nrOptionStrings]
const int nrIntegers = 6
OptionInteger optionIntegers [nrIntegers]


Function Documentation

void addOptionInteger string  p,
int  n
 

Definition at line 374 of file dotdefs.cc.

References OptionInteger::f, g_errorStream, nrIntegers, optionIntegers, and OptionInteger::s.

void addOptionString string  p,
string  q
 

Definition at line 337 of file dotdefs.cc.

References OptionString::f, g_errorStream, nrOptionStrings, optionStrings, and OptionString::s.

void dotDefsSetErrorStream std::ostream &  e = std::cerr  )  [inline]
 

Definition at line 19 of file dotdefs.cc.

References g_errorStream.

void setBool string  s,
string *  c
 

Definition at line 280 of file dotdefs.cc.

References g_errorStream.

void setColor string  s,
string *  c
 

Definition at line 143 of file dotdefs.cc.

References colors, g_errorStream, and nrColors.

void setFontName string  s,
string *  c
 

Definition at line 167 of file dotdefs.cc.

References fontNames, g_errorStream, and nrFonts.

void setInt int  n,
int *  c
 

Definition at line 356 of file dotdefs.cc.

void setNodeFifo string  s,
string *  c
 

Definition at line 296 of file dotdefs.cc.

References g_errorStream.

void setPageSize string  s,
string *  c
 

Definition at line 210 of file dotdefs.cc.

References g_errorStream, DotDefs::margin, DotDefs::orientation, DotDefs::rankDir, and DotDefs::size.

void setRatio string  s,
string *  c
 

Definition at line 196 of file dotdefs.cc.

References g_errorStream, nrRatios, and ratios.


Variable Documentation

const char* colors[nrColors] [static]
 

Initial value:

{
  "white",
  "gray",
  "black",
  "red",
  "brown",
  "orange",
  "yellow",
  "green",
  "cyan",
  "blue",
  "magenta",
  "pink",
  "beige",
  "gold",
  "violet",
  "lavender",
  "purple",
  "navy"
}

Definition at line 121 of file dotdefs.cc.

Referenced by setColor().

const char* fontNames[nrFonts] [static]
 

Initial value:

{
  "Times-Roman",
  "Helvetica",
  "Courier"
}

Definition at line 160 of file dotdefs.cc.

Referenced by setFontName().

std::ostream* g_errorStream = &std::cerr [static]
 

Definition at line 17 of file dotdefs.cc.

Referenced by addOptionInteger(), addOptionString(), dotDefsSetErrorStream(), setBool(), setColor(), setFontName(), setNodeFifo(), setPageSize(), and setRatio().

const int nrColors = 18
 

Definition at line 120 of file dotdefs.cc.

Referenced by setColor().

const int nrFonts = 3
 

Definition at line 159 of file dotdefs.cc.

Referenced by setFontName().

const int nrIntegers = 6
 

Definition at line 363 of file dotdefs.cc.

Referenced by addOptionInteger().

const int nrOptionStrings = 18
 

Definition at line 313 of file dotdefs.cc.

Referenced by addOptionString().

const int nrRatios = 3
 

Definition at line 188 of file dotdefs.cc.

Referenced by setRatio().

OptionInteger optionIntegers[nrIntegers]
 

Initial value:

{
  {"InitLevel", setInt, &DotDefs::levelInit},
  {"ProcessNetworkClusterFontSize", setInt, &DotDefs::fontSizeClusterTitle},
  {"ProcessNetworkFontSize", setInt, &DotDefs::fontSizeProcessNetwork},
  {"ProcessFontSize", setInt, &DotDefs::fontSizeProcess},
  {"PortFontSize", setInt, &DotDefs::fontSizePort},
  {"FifoFontSize", setInt, &DotDefs::fontSizeFifo}
}

Definition at line 364 of file dotdefs.cc.

Referenced by addOptionInteger().

OptionString optionStrings[nrOptionStrings]
 

Initial value:

 
{
  {"ProcessNetworkColor", setColor, &DotDefs::nodeColorProcessNetwork},
  {"ProcessColor", setColor, &DotDefs::nodeColorProcess},
  {"PortColor", setColor, &DotDefs::nodeColorPort},
  {"FifoColor", setColor, &DotDefs::nodeColorFifo},
  {"ProcessNetworkClusterFontColor", setColor, &DotDefs::fontColorClusterTitle},
  {"ProcessNetworkFontColor", setColor, &DotDefs::fontColorProcessNetwork},
  {"ProcessFontColor", setColor, &DotDefs::fontColorProcess},
  {"PortFontColor", setColor, &DotDefs::fontColorPort},
  {"FifoFontColor", setColor, &DotDefs::fontColorFifo},
  {"ProcessNetworkClusterFontName", setFontName, &DotDefs::fontNameClusterTitle},
  {"ProcessNetworkFontName", setFontName, &DotDefs::fontNameProcessNetwork},
  {"ProcessFontName", setFontName, &DotDefs::fontNameProcess},
  {"PortFontName", setFontName, &DotDefs::fontNamePort},
  {"FifoFontName", setFontName, &DotDefs::fontNameFifo},
  {"Ratio", setRatio, &DotDefs::ratio},
  {"PageSize", setPageSize, &DotDefs::dummy},
  {"Decorate", setBool, &DotDefs::edgeDecorate},
  {"Fifo", setNodeFifo, &DotDefs::nodeFifo}
}

Definition at line 315 of file dotdefs.cc.

Referenced by addOptionString().

const char* ratios[nrRatios] [static]
 

Initial value:

{
  "fill",
  "compress",
  "auto"
}

Definition at line 189 of file dotdefs.cc.

Referenced by setRatio().


Generated on Wed Feb 15 14:52:39 2006 for yapi by doxygen 1.3.2