OpenADFortTk (basic)
Args Class Reference

#include <Args.h>

Collaboration diagram for Args:

List of all members.

Public Member Functions

 Args ()
 Args (int argc, const char *const argv[])
 ~Args ()
void Parse (int argc, const char *const argv[])
void PrintVersion (std::ostream &os) const
void PrintUsage (std::ostream &os) const
void PrintError (std::ostream &os, const char *msg) const
void PrintError (std::ostream &os, const std::string &msg) const
void Dump (std::ostream &os=std::cerr) const
void DDump () const
const std::string & GetCmd () const
 Args ()
 Args (int argc, const char *const argv[])
 ~Args ()
void Parse (int argc, const char *const argv[])
void PrintVersion (std::ostream &os) const
void PrintUsage (std::ostream &os) const
void PrintError (std::ostream &os, const char *msg) const
void PrintError (std::ostream &os, const std::string &msg) const
void Dump (std::ostream &os=std::cerr) const
void DDump () const
const std::string & GetCmd () const
 Args ()
 Args (int argc, const char *const argv[])
 ~Args ()
void Parse (int argc, const char *const argv[])
void PrintVersion (std::ostream &os) const
void PrintUsage (std::ostream &os) const
void PrintError (std::ostream &os, const char *msg) const
void PrintError (std::ostream &os, const std::string &msg) const
void Dump (std::ostream &os=std::cerr) const
void DDump () const
const std::string & GetCmd () const
 Args ()
 Args (int argc, const char *const argv[])
 ~Args ()
void Parse (int argc, const char *const argv[])
void PrintVersion (std::ostream &os) const
void PrintUsage (std::ostream &os) const
void PrintError (std::ostream &os, const char *msg) const
void PrintError (std::ostream &os, const std::string &msg) const
void Dump (std::ostream &os=std::cerr) const
void DDump () const
const std::string & GetCmd () const
 Args ()
 Args (int argc, const char *const argv[])
 ~Args ()
void Parse (int argc, const char *const argv[])
void PrintVersion (std::ostream &os) const
void PrintUsage (std::ostream &os) const
void PrintError (std::ostream &os, const char *msg) const
void PrintError (std::ostream &os, const std::string &msg) const
void Dump (std::ostream &os=std::cerr) const
void DDump () const
const std::string & GetCmd () const

Public Attributes

std::string whirlFileNm
int debug
std::string sexpFileNm
int runMode
bool dumpIR
bool myNoCleanUpFlag
std::string xaifFileNm
std::string tmpVarPrefix
xaif2whirl::AlgorithmType algorithm
std::string inWhirlFileNm
std::string outWhirlFileNm
bool validate

Static Public Attributes

static bool ourSimpleLoopFlag = false
static bool ourDoNotFilterFlag = false
static bool ourNoTimeStampFlag = false
static bool ourVariedOnlyFlag = false
static bool ourUniformCBactFlag = false
static bool ourAllActiveFlag = false
static std::string ourActiveTypeNm
static const unsigned short ourActiveTypeNmLength = 27
static TYPE_ID ourDefaultMTypeInt = MTYPE_I8
static TYPE_ID ourDefaultMTypeUInt = MTYPE_U8
static TYPE_ID ourDefaultMTypeReal = MTYPE_F8

Private Member Functions

void Ctor ()
void Ctor ()
void Ctor ()
void Ctor ()

Private Attributes

CmdLineParser parser

Static Private Attributes

static CmdLineParser::OptArgDesc optArgs []

Detailed Description

Definition at line 13 of file Args.h.


Constructor & Destructor Documentation

Definition at line 50 of file Args.cxx.

References Ctor().

Here is the call graph for this function:

Args::Args ( int  argc,
const char *const  argv[] 
)

Definition at line 55 of file Args.cxx.

References Ctor(), and Parse().

Here is the call graph for this function:

Definition at line 67 of file Args.cxx.

Args::Args ( int  argc,
const char *const  argv[] 
)
Args::Args ( int  argc,
const char *const  argv[] 
)
Args::Args ( int  argc,
const char *const  argv[] 
)
Args::Args ( int  argc,
const char *const  argv[] 
)

Member Function Documentation

void Args::Ctor ( ) [private]
void Args::Ctor ( ) [private]

Definition at line 62 of file Args.cxx.

References debug.

Referenced by Args().

void Args::Ctor ( ) [private]
void Args::Ctor ( ) [private]
void Args::DDump ( ) const
void Args::DDump ( ) const

Definition at line 165 of file Args.cxx.

References Dump().

Here is the call graph for this function:

void Args::DDump ( ) const
void Args::DDump ( ) const
void Args::DDump ( ) const
void Args::Dump ( std::ostream &  os = std::cerr) const
void Args::Dump ( std::ostream &  os = std::cerr) const

Definition at line 159 of file Args.cxx.

References CmdLineParser::Dump(), and parser.

Referenced by DDump().

Here is the call graph for this function:

void Args::Dump ( std::ostream &  os = std::cerr) const
void Args::Dump ( std::ostream &  os = std::cerr) const
void Args::Dump ( std::ostream &  os = std::cerr) const
const std::string& Args::GetCmd ( ) const [inline]

Definition at line 34 of file Args.h.

References CmdLineParser::GetCmd(), and parser.

Here is the call graph for this function:

const std::string& Args::GetCmd ( ) const [inline]

Definition at line 36 of file Args.h.

References CmdLineParser::GetCmd(), and parser.

Referenced by PrintError(), PrintUsage(), and PrintVersion().

Here is the call graph for this function:

const std::string& Args::GetCmd ( ) const [inline]

Definition at line 39 of file Args.h.

References CmdLineParser::GetCmd(), and parser.

Here is the call graph for this function:

const std::string& Args::GetCmd ( ) const [inline]

Definition at line 40 of file Args.h.

References CmdLineParser::GetCmd(), and parser.

Here is the call graph for this function:

const std::string& Args::GetCmd ( ) const [inline]

Definition at line 41 of file Args.h.

References CmdLineParser::GetCmd(), and parser.

Here is the call graph for this function:

void Args::Parse ( int  argc,
const char *const  argv[] 
)
void Args::Parse ( int  argc,
const char *const  argv[] 
)
void Args::Parse ( int  argc,
const char *const  argv[] 
)
void Args::Parse ( int  argc,
const char *const  argv[] 
)
void Args::PrintError ( std::ostream &  os,
const char *  msg 
) const
void Args::PrintError ( std::ostream &  os,
const std::string &  msg 
) const
void Args::PrintError ( std::ostream &  os,
const char *  msg 
) const

Definition at line 88 of file Args.cxx.

References GetCmd().

Referenced by Parse(), and PrintError().

Here is the call graph for this function:

void Args::PrintError ( std::ostream &  os,
const std::string &  msg 
) const

Definition at line 95 of file Args.cxx.

References PrintError().

Here is the call graph for this function:

void Args::PrintError ( std::ostream &  os,
const char *  msg 
) const
void Args::PrintError ( std::ostream &  os,
const char *  msg 
) const
void Args::PrintError ( std::ostream &  os,
const std::string &  msg 
) const
void Args::PrintError ( std::ostream &  os,
const char *  msg 
) const
void Args::PrintError ( std::ostream &  os,
const std::string &  msg 
) const
void Args::PrintError ( std::ostream &  os,
const std::string &  msg 
) const
void Args::PrintUsage ( std::ostream &  os) const
void Args::PrintUsage ( std::ostream &  os) const

Definition at line 80 of file Args.cxx.

References GetCmd(), usage_details, and usage_summary.

Referenced by Parse().

Here is the call graph for this function:

void Args::PrintUsage ( std::ostream &  os) const
void Args::PrintUsage ( std::ostream &  os) const
void Args::PrintUsage ( std::ostream &  os) const
void Args::PrintVersion ( std::ostream &  os) const
void Args::PrintVersion ( std::ostream &  os) const

Definition at line 73 of file Args.cxx.

References GetCmd(), and version_info.

Referenced by Parse().

Here is the call graph for this function:

void Args::PrintVersion ( std::ostream &  os) const
void Args::PrintVersion ( std::ostream &  os) const
void Args::PrintVersion ( std::ostream &  os) const

Member Data Documentation

Definition at line 44 of file Args.h.

Referenced by xaif2whirl::real_main().

Definition at line 40 of file Args.h.

Referenced by Ctor(), Parse(), real_main(), and xaif2whirl::real_main().

Definition at line 38 of file Args.h.

Referenced by real_main().

std::string Args::inWhirlFileNm

Definition at line 48 of file Args.h.

Referenced by xaif2whirl::real_main().

Definition at line 48 of file Args.h.

Referenced by real_main(), and xaif2whirl::real_main().

static CmdLineParser::OptArgDesc Args::optArgs [static, private]
Initial value:
 {
  
  { 'o', "output",   CLP::ARG_REQ , CLP::DUPOPT_ERR,  NULL },
  { 'V', "version",  CLP::ARG_NONE, CLP::DUPOPT_CLOB, NULL },
  { 'h', "help",     CLP::ARG_NONE, CLP::DUPOPT_CLOB, NULL },
  {  0 , "debug",    CLP::ARG_OPT,  CLP::DUPOPT_CLOB, NULL },
  CmdLineParser::OptArgDesc_NULL
}

Definition at line 49 of file Args.h.

Referenced by Parse().

std::string Args::ourActiveTypeNm [static]

Definition at line 51 of file Args.h.

Referenced by xaif2whirl::DeclareActiveTypes().

const unsigned short Args::ourActiveTypeNmLength = 27 [static]

Definition at line 52 of file Args.h.

Referenced by xaif2whirl::DeclareActiveTypes().

bool Args::ourAllActiveFlag = false [static]

Definition at line 66 of file Args.h.

Referenced by whirl2xaif::xlate_STDecl_VAR().

TYPE_ID Args::ourDefaultMTypeReal = MTYPE_F8 [static]
TYPE_ID Args::ourDefaultMTypeUInt = MTYPE_U8 [static]

Definition at line 56 of file Args.h.

Referenced by xaif2whirl::XlateExpression::xlate_SymbolReference().

bool Args::ourDoNotFilterFlag = false [static]

Definition at line 54 of file Args.h.

Referenced by whirl2xaif::Whirl2Xaif::translateIR().

bool Args::ourNoTimeStampFlag = false [static]

Definition at line 57 of file Args.h.

Referenced by whirl2xaif::Whirl2Xaif::translateIR().

bool Args::ourSimpleLoopFlag = false [static]

Definition at line 51 of file Args.h.

Referenced by whirl2xaif::GetLoopReversalType().

bool Args::ourUniformCBactFlag = false [static]

Definition at line 63 of file Args.h.

Referenced by whirl2xaif::xlate_STDecl_VAR().

bool Args::ourVariedOnlyFlag = false [static]

Definition at line 60 of file Args.h.

Referenced by whirl2xaif::Whirl2Xaif::translateIR().

std::string Args::outWhirlFileNm

Definition at line 49 of file Args.h.

Referenced by xaif2whirl::real_main().

Definition at line 50 of file Args.h.

Referenced by Dump(), GetCmd(), and Parse().

Definition at line 37 of file Args.h.

Referenced by real_main().

std::string Args::sexpFileNm

Definition at line 43 of file Args.h.

Referenced by InitOutputStream(), Parse(), and real_main().

std::string Args::tmpVarPrefix

Definition at line 44 of file Args.h.

Referenced by real_main().

Definition at line 53 of file Args.h.

Referenced by xaif2whirl::real_main().

std::string Args::whirlFileNm

Definition at line 39 of file Args.h.

Referenced by Parse(), and real_main().

std::string Args::xaifFileNm

Definition at line 43 of file Args.h.

Referenced by FiniOutputStream(), InitOutputStream(), and xaif2whirl::real_main().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines