DS_Creator Class Reference

#include <DS_Creator.h>

List of all members.

Public Member Functions

 DS_Creator (DS_ParmReader &pr, const char *appName=DS_DEFNAME)
virtual ~DS_Creator ()
int openOutput (ostream &os)
int closeOutput ()
int prepareToWriteOutput ()
int writeOutput ()

Static Public Member Functions

static void setUseOldGrouping (bool useold)
static bool getUseOldGrouping ()
static const char * getIndent (int level)
static void dumpParm (const DS_ParmInfo *pi)

Static Public Attributes

static const char * theToolboxLabels []
static const int OP_MAX_INPUT_LABELS = 4

Protected Member Functions

void writeUnboundSelectors (DS_SelectorList &selectors)
void writeReservedSelectors (DS_SelectorList &selectors)
void writeReservedHandles (DS_HandleList &handles)
void writeBoundHandles (DS_HandleList &handles)
void writeMetaInfo ()
virtual void writeContextSpecific ()
virtual int writeInfo ()
virtual void writeHeader (const char *appname, const char *script)
virtual void writeTrailer (const char *appname, const char *script)

Static Protected Member Functions

static void startGroup (ostream &os, int &id, const char *name)
static void printParm (ostream &os, const DS_ParmInfo *pi)
static void printHelp (ostream &os, const char *help)
static void printInfo (ostream &os, const char *info)

Protected Attributes

DS_ParmReadermyPR
UT_String myAppName
ostream * myOS

Static Protected Attributes

static UT_StringArray theGroupStack
static bool theUseOldGrouping


Detailed Description

Definition at line 34 of file DS_Creator.h.


Constructor & Destructor Documentation

DS_Creator::DS_Creator ( DS_ParmReader pr,
const char *  appName = DS_DEFNAME 
)

virtual DS_Creator::~DS_Creator (  )  [virtual]


Member Function Documentation

int DS_Creator::closeOutput (  ) 

static void DS_Creator::dumpParm ( const DS_ParmInfo pi  )  [inline, static]

Definition at line 63 of file DS_Creator.h.

static const char* DS_Creator::getIndent ( int  level  )  [static]

Returns an indentation string for the given indent level.

The string is kept in a static buffer, which has the advantage of automatically caching it, but you are thus meant to call getIndent pretty much every time you want to indent something

static bool DS_Creator::getUseOldGrouping (  )  [static]

int DS_Creator::openOutput ( ostream &  os  ) 

int DS_Creator::prepareToWriteOutput (  ) 

static void DS_Creator::printHelp ( ostream &  os,
const char *  help 
) [static, protected]

static void DS_Creator::printInfo ( ostream &  os,
const char *  info 
) [static, protected]

static void DS_Creator::printParm ( ostream &  os,
const DS_ParmInfo pi 
) [static, protected]

static void DS_Creator::setUseOldGrouping ( bool  useold  )  [static]

static void DS_Creator::startGroup ( ostream &  os,
int &  id,
const char *  name 
) [static, protected]

void DS_Creator::writeBoundHandles ( DS_HandleList handles  )  [protected]

virtual void DS_Creator::writeContextSpecific (  )  [protected, virtual]

virtual void DS_Creator::writeHeader ( const char *  appname,
const char *  script 
) [protected, virtual]

virtual int DS_Creator::writeInfo (  )  [protected, virtual]

void DS_Creator::writeMetaInfo (  )  [protected]

int DS_Creator::writeOutput (  ) 

void DS_Creator::writeReservedHandles ( DS_HandleList handles  )  [protected]

void DS_Creator::writeReservedSelectors ( DS_SelectorList selectors  )  [protected]

virtual void DS_Creator::writeTrailer ( const char *  appname,
const char *  script 
) [protected, virtual]

void DS_Creator::writeUnboundSelectors ( DS_SelectorList selectors  )  [protected]


Member Data Documentation

Definition at line 84 of file DS_Creator.h.

ostream* DS_Creator::myOS [protected]

Definition at line 85 of file DS_Creator.h.

Definition at line 83 of file DS_Creator.h.

const int DS_Creator::OP_MAX_INPUT_LABELS = 4 [static]

Definition at line 61 of file DS_Creator.h.

Definition at line 87 of file DS_Creator.h.

const char* DS_Creator::theToolboxLabels[] [static]

Definition at line 57 of file DS_Creator.h.

bool DS_Creator::theUseOldGrouping [static, protected]

Definition at line 88 of file DS_Creator.h.


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

Generated on Fri May 25 00:10:22 2012 for HDK by  doxygen 1.5.9