Xalan-C++ API Reference
1.12.0
|
#include <xalanc/Harness/XalanFileUtility.hpp>
Classes | |
struct | cmdParams |
struct | reportStruct |
Public Types | |
typedef XalanVector< XalanDOMString > | FileNameVectorType |
typedef XalanVector< char > | CharVectorType |
Public Member Functions | |
XalanFileUtility (MemoryManager &theManager) | |
Simple constructor, does not perform initialization. More... | |
~XalanFileUtility () | |
bool | getVerbose () const |
void | setVerbose (bool flag) |
int | getFailureCount () const |
XalanDOMString & | getDrive (XalanDOMString &theResult) |
Utility method used to get test files from a specific directory. More... | |
bool | getParams (int argc, char *argv[], const char *outDir, bool fsetGold=true) |
FileNameVectorType & | getTestFileNames (const XalanDOMString &baseDir, const XalanDOMString &relDir, bool useDirPrefix, FileNameVectorType &theFiles) |
FileNameVectorType & | getDirectoryNames (const XalanDOMString &rootDirectory, FileNameVectorType &theFiles) |
Utility method used to get subdirectories from a specific directory. More... | |
void | checkAndCreateDir (const XalanDOMString &directory) |
Utility method used to create default directories when neccessary. More... | |
bool | checkDir (const XalanDOMString &directory) |
Utility method determines if directory exists. More... | |
XalanDOMString & | getXSLFileName (const XalanDOMString &theXMLFileName, XalanDOMString &theResult) |
Utility method used to get XSL file based on XML file. More... | |
XalanDOMString & | generateFileName (const XalanDOMString &theXMLFileName, const char *suffix, XalanDOMString &theResult, bool *status=0) |
Utility method used to get OUT file based on XML file. More... | |
XalanDOMString & | generateUniqRunid (XalanDOMString &theResult) |
Utility method used to generate UniqRunid. More... | |
XalanDOMString & | getXercesVersion (XalanDOMString &theResult) |
Utility methods used to get Xerces Version number. More... | |
void | checkResults (const XalanDOMString &outputFile, const XalanDOMString &goldFile, XalanXMLFileReporter &logfile) |
void | checkAPIResults (const XalanDOMString &actual, const XalanDOMString &expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, bool containsOnly=false) |
void | checkAPIResults (const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, MemoryManager &, bool containsOnly=false) |
void | checkAPIResults (const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, bool containsOnly=false) |
void | checkDOMResults (const XalanDOMString &theOutputFile, const XalanCompiledStylesheet *compiledSS, const XalanSourceTreeDocument *dom, const XSLTInputSource &goldInputSource, XalanXMLFileReporter &logfile) |
Utility method used to compare the results. More... | |
bool | compareSerializedResults (const XalanDOMString &transformResult, const XalanDOMString &goldInputSource) |
FormatterListener * | getXMLFormatter (PrintWriter &resultWriter, int indentAmount, const XalanDOMString &mimeEncoding, const StylesheetRoot *stylesheet) |
Utility method used to create a FormatterToXML FormatterListener. More... | |
bool | fileCompare (const char *goldFile, const char *outputFile) |
bool | domCompare (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to perform a DOM Compare. More... | |
bool | domCompare (const XalanDocument &gold, const XalanDocument &doc) |
Utility methods used to perform a DOM Compare. More... | |
bool | diffElement (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to diff two Element nodes. More... | |
bool | diffNode (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to diff two nodes. More... | |
bool | diffNode (const XalanNode *gold, const XalanNode *doc) |
Utility methods used to diff two nodes. More... | |
bool | diffElement2 (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to diff two Element nodes. More... | |
bool | diffAttr (const XalanNode *gAttr, const XalanNode *dAttr) |
Utility methods used to diff two attribute nodes. More... | |
void | reportPassFail (XalanXMLFileReporter &logfile) |
Utility methods used to report Pass/Fail numbers. More... | |
void | reportPassFail (XalanXMLFileReporter &logfile, const XalanDOMString &runid) |
void | analyzeResults (XalanTransformer &xalan, const XalanDOMString &resultsFile) |
const MemoryManager & | getMemoryManager () const |
MemoryManager & | getMemoryManager () |
Public Attributes | |
struct XALAN_HARNESS_EXPORT xalanc::XalanFileUtility::reportStruct | data |
struct XALAN_HARNESS_EXPORT xalanc::XalanFileUtility::cmdParams | args |
Static Public Attributes | |
static const XalanDOMChar | s_xmlSuffix [] |
static const XalanDOMChar | s_pathSep [] |
Definition at line 58 of file XalanFileUtility.hpp.
typedef XalanVector<char> xalanc::XalanFileUtility::CharVectorType |
Definition at line 65 of file XalanFileUtility.hpp.
Definition at line 64 of file XalanFileUtility.hpp.
xalanc::XalanFileUtility::XalanFileUtility | ( | MemoryManager & | theManager | ) |
Simple constructor, does not perform initialization.
xalanc::XalanFileUtility::~XalanFileUtility | ( | ) |
void xalanc::XalanFileUtility::analyzeResults | ( | XalanTransformer & | xalan, |
const XalanDOMString & | resultsFile | ||
) |
void xalanc::XalanFileUtility::checkAndCreateDir | ( | const XalanDOMString & | directory | ) |
Utility method used to create default directories when neccessary.
|
inline |
Definition at line 272 of file XalanFileUtility.hpp.
|
inline |
Definition at line 251 of file XalanFileUtility.hpp.
void xalanc::XalanFileUtility::checkAPIResults | ( | const XalanDOMString & | actual, |
const XalanDOMString & | expected, | ||
const char * | msg, | ||
XalanXMLFileReporter & | logfile, | ||
const XalanDOMString & | outputFile, | ||
const XalanDOMString & | goldFile, | ||
bool | containsOnly = false |
||
) |
bool xalanc::XalanFileUtility::checkDir | ( | const XalanDOMString & | directory | ) |
Utility method determines if directory exists.
void xalanc::XalanFileUtility::checkDOMResults | ( | const XalanDOMString & | theOutputFile, |
const XalanCompiledStylesheet * | compiledSS, | ||
const XalanSourceTreeDocument * | dom, | ||
const XSLTInputSource & | goldInputSource, | ||
XalanXMLFileReporter & | logfile | ||
) |
Utility method used to compare the results.
It inturn call domCompare.
void xalanc::XalanFileUtility::checkResults | ( | const XalanDOMString & | outputFile, |
const XalanDOMString & | goldFile, | ||
XalanXMLFileReporter & | logfile | ||
) |
bool xalanc::XalanFileUtility::compareSerializedResults | ( | const XalanDOMString & | transformResult, |
const XalanDOMString & | goldInputSource | ||
) |
Utility methods used to diff two attribute nodes.
Utility methods used to diff two Element nodes.
Utility methods used to diff two Element nodes.
Utility methods used to diff two nodes.
Utility methods used to diff two nodes.
bool xalanc::XalanFileUtility::domCompare | ( | const XalanDocument & | gold, |
const XalanDocument & | doc | ||
) |
Utility methods used to perform a DOM Compare.
Utility methods used to perform a DOM Compare.
bool xalanc::XalanFileUtility::fileCompare | ( | const char * | goldFile, |
const char * | outputFile | ||
) |
XalanDOMString& xalanc::XalanFileUtility::generateFileName | ( | const XalanDOMString & | theXMLFileName, |
const char * | suffix, | ||
XalanDOMString & | theResult, | ||
bool * | status = 0 |
||
) |
Utility method used to get OUT file based on XML file.
XalanDOMString& xalanc::XalanFileUtility::generateUniqRunid | ( | XalanDOMString & | theResult | ) |
Utility method used to generate UniqRunid.
FileNameVectorType& xalanc::XalanFileUtility::getDirectoryNames | ( | const XalanDOMString & | rootDirectory, |
FileNameVectorType & | theFiles | ||
) |
Utility method used to get subdirectories from a specific directory.
XalanDOMString& xalanc::XalanFileUtility::getDrive | ( | XalanDOMString & | theResult | ) |
Utility method used to get test files from a specific directory.
|
inline |
Definition at line 151 of file XalanFileUtility.hpp.
|
inline |
Definition at line 408 of file XalanFileUtility.hpp.
|
inline |
Definition at line 402 of file XalanFileUtility.hpp.
bool xalanc::XalanFileUtility::getParams | ( | int | argc, |
char * | argv[], | ||
const char * | outDir, | ||
bool | fsetGold = true |
||
) |
FileNameVectorType& xalanc::XalanFileUtility::getTestFileNames | ( | const XalanDOMString & | baseDir, |
const XalanDOMString & | relDir, | ||
bool | useDirPrefix, | ||
FileNameVectorType & | theFiles | ||
) |
|
inline |
Definition at line 139 of file XalanFileUtility.hpp.
XalanDOMString& xalanc::XalanFileUtility::getXercesVersion | ( | XalanDOMString & | theResult | ) |
Utility methods used to get Xerces Version number.
FormatterListener* xalanc::XalanFileUtility::getXMLFormatter | ( | PrintWriter & | resultWriter, |
int | indentAmount, | ||
const XalanDOMString & | mimeEncoding, | ||
const StylesheetRoot * | stylesheet | ||
) |
Utility method used to create a FormatterToXML FormatterListener.
This is required to DOM comparisions.
XalanDOMString& xalanc::XalanFileUtility::getXSLFileName | ( | const XalanDOMString & | theXMLFileName, |
XalanDOMString & | theResult | ||
) |
Utility method used to get XSL file based on XML file.
void xalanc::XalanFileUtility::reportPassFail | ( | XalanXMLFileReporter & | logfile | ) |
Utility methods used to report Pass/Fail numbers.
void xalanc::XalanFileUtility::reportPassFail | ( | XalanXMLFileReporter & | logfile, |
const XalanDOMString & | runid | ||
) |
|
inline |
Definition at line 145 of file XalanFileUtility.hpp.
struct XALAN_HARNESS_EXPORT xalanc::XalanFileUtility::cmdParams xalanc::XalanFileUtility::args |
struct XALAN_HARNESS_EXPORT xalanc::XalanFileUtility::reportStruct xalanc::XalanFileUtility::data |
|
static |
Definition at line 399 of file XalanFileUtility.hpp.
|
static |
Definition at line 397 of file XalanFileUtility.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:36 for Xalan-C++ API Reference by 1.8.17