18#if !defined(XALAN_FILEUTILITY_HEADER_GUARD_1357924680)
19#define XALAN_FILEUTILITY_HEADER_GUARD_1357924680
41class FormatterListener;
44class XalanCompiledStylesheet;
47class XalanSourceTreeDocument;
48class XalanTransformer;
49class XalanXMLFileReporter;
53using xercesc::MemoryManager;
97 typedef std::ostrstream StreamType;
169 bool fsetGold =
true);
246 bool containsOnly =
false);
253 const char* expected,
259 bool containsOnly =
false)
274 const char* expected,
279 bool containsOnly =
false)
324 const char* goldFile,
325 const char* outputFile);
397 static const XalanDOMChar s_xmlSuffix[];
399 static const XalanDOMChar s_pathSep[];
404 return m_buffer.getMemoryManager();
410 return m_buffer.getMemoryManager();
#define XALAN_HARNESS_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all styl...
This is an abstraction of the StylesheetRoot class.
bool diffElement2(const XalanNode &gold, const XalanNode &doc)
Utility methods used to diff two Element nodes.
FileNameVectorType & getDirectoryNames(const XalanDOMString &rootDirectory, FileNameVectorType &theFiles)
Utility method used to get subdirectories from a specific directory.
bool fileCompare(const char *goldFile, const char *outputFile)
FileNameVectorType & getTestFileNames(const XalanDOMString &baseDir, const XalanDOMString &relDir, bool useDirPrefix, FileNameVectorType &theFiles)
bool getParams(int argc, char *argv[], const char *outDir, bool fsetGold=true)
XalanDOMString & generateFileName(const XalanDOMString &theXMLFileName, const char *suffix, XalanDOMString &theResult, bool *status=0)
Utility method used to get OUT file based on XML file.
void checkDOMResults(const XalanDOMString &theOutputFile, const XalanCompiledStylesheet *compiledSS, const XalanSourceTreeDocument *dom, const XSLTInputSource &goldInputSource, XalanXMLFileReporter &logfile)
Utility method used to compare the results.
void reportPassFail(XalanXMLFileReporter &logfile)
Utility methods used to report Pass/Fail numbers.
XalanVector< char > CharVectorType
FormatterListener * getXMLFormatter(PrintWriter &resultWriter, int indentAmount, const XalanDOMString &mimeEncoding, const StylesheetRoot *stylesheet)
Utility method used to create a FormatterToXML FormatterListener.
void checkAndCreateDir(const XalanDOMString &directory)
Utility method used to create default directories when neccessary.
MemoryManager & getMemoryManager()
bool checkDir(const XalanDOMString &directory)
Utility method determines if directory exists.
void checkAPIResults(const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, bool containsOnly=false)
bool diffNode(const XalanNode *gold, const XalanNode *doc)
Utility methods used to diff two nodes.
void checkAPIResults(const XalanDOMString &actual, const XalanDOMString &expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, bool containsOnly=false)
bool domCompare(const XalanNode &gold, const XalanNode &doc)
Utility methods used to perform a DOM Compare.
bool diffNode(const XalanNode &gold, const XalanNode &doc)
Utility methods used to diff two nodes.
void reportPassFail(XalanXMLFileReporter &logfile, const XalanDOMString &runid)
XalanDOMString & getXSLFileName(const XalanDOMString &theXMLFileName, XalanDOMString &theResult)
Utility method used to get XSL file based on XML file.
const MemoryManager & getMemoryManager() const
bool diffElement(const XalanNode &gold, const XalanNode &doc)
Utility methods used to diff two Element nodes.
void setVerbose(bool flag)
bool compareSerializedResults(const XalanDOMString &transformResult, const XalanDOMString &goldInputSource)
bool domCompare(const XalanDocument &gold, const XalanDocument &doc)
Utility methods used to perform a DOM Compare.
void analyzeResults(XalanTransformer &xalan, const XalanDOMString &resultsFile)
XalanVector< XalanDOMString > FileNameVectorType
int getFailureCount() const
XalanDOMString & generateUniqRunid(XalanDOMString &theResult)
Utility method used to generate UniqRunid.
bool diffAttr(const XalanNode *gAttr, const XalanNode *dAttr)
Utility methods used to diff two attribute nodes.
XalanDOMString & getXercesVersion(XalanDOMString &theResult)
Utility methods used to get Xerces Version number.
void checkResults(const XalanDOMString &outputFile, const XalanDOMString &goldFile, XalanXMLFileReporter &logfile)
XalanFileUtility(MemoryManager &theManager)
Simple constructor, does not perform initialization.
void checkAPIResults(const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, MemoryManager &, bool containsOnly=false)
XalanDOMString & getDrive(XalanDOMString &theResult)
Utility method used to get test files from a specific directory.
StreamType & getHelpStream()
cmdParams(MemoryManager &theManager)
const char * getHelpMessage()
XalanDOMString xslFileURL
XalanDOMString testOrFile
XalanDOMString currentNode
XalanDOMString xmlFileURL
reportStruct(MemoryManager &theManager)