18 #if !defined(XALAN_FILEUTILITY_HEADER_GUARD_1357924680)
19 #define XALAN_FILEUTILITY_HEADER_GUARD_1357924680
41 class FormatterListener;
44 class XalanCompiledStylesheet;
47 class XalanSourceTreeDocument;
48 class XalanTransformer;
49 class XalanXMLFileReporter;
50 class XSLTInputSource;
53 using 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.
bool fileCompare(const char *goldFile, const char *outputFile)
bool getParams(int argc, char *argv[], const char *outDir, bool fsetGold=true)
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
void checkAndCreateDir(const XalanDOMString &directory)
Utility method used to create default directories when neccessary.
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)
XalanDOMString & getXSLFileName(const XalanDOMString &theXMLFileName, XalanDOMString &theResult)
Utility method used to get XSL file based on XML file.
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.
const MemoryManager & getMemoryManager() const
FormatterListener * getXMLFormatter(PrintWriter &resultWriter, int indentAmount, const XalanDOMString &mimeEncoding, const StylesheetRoot *stylesheet)
Utility method used to create a FormatterToXML FormatterListener.
void reportPassFail(XalanXMLFileReporter &logfile, const XalanDOMString &runid)
XalanDOMString & generateFileName(const XalanDOMString &theXMLFileName, const char *suffix, XalanDOMString &theResult, bool *status=0)
Utility method used to get OUT file based on XML file.
bool diffElement(const XalanNode &gold, const XalanNode &doc)
Utility methods used to diff two Element nodes.
void setVerbose(bool flag)
FileNameVectorType & getDirectoryNames(const XalanDOMString &rootDirectory, FileNameVectorType &theFiles)
Utility method used to get subdirectories from a specific directory.
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)
MemoryManager & getMemoryManager()
XalanVector< XalanDOMString > FileNameVectorType
int getFailureCount() const
bool diffAttr(const XalanNode *gAttr, const XalanNode *dAttr)
Utility methods used to diff two attribute nodes.
XalanDOMString & getDrive(XalanDOMString &theResult)
Utility method used to get test files from a specific directory.
void checkResults(const XalanDOMString &outputFile, const XalanDOMString &goldFile, XalanXMLFileReporter &logfile)
XalanFileUtility(MemoryManager &theManager)
Simple constructor, does not perform initialization.
FileNameVectorType & getTestFileNames(const XalanDOMString &baseDir, const XalanDOMString &relDir, bool useDirPrefix, FileNameVectorType &theFiles)
XalanDOMString & generateUniqRunid(XalanDOMString &theResult)
Utility method used to generate UniqRunid.
XalanDOMString & getXercesVersion(XalanDOMString &theResult)
Utility methods used to get Xerces Version number.
void checkAPIResults(const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, MemoryManager &, bool containsOnly=false)
cmdParams(MemoryManager &theManager)
const char * getHelpMessage()
StreamType & getHelpStream()
XalanDOMString xslFileURL
XalanDOMString testOrFile
XalanDOMString currentNode
XalanDOMString xmlFileURL
reportStruct(MemoryManager &theManager)