 |
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
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();
466 #endif // XALAN_FILEUTILITY_HEADER_GUARD_1357924680
MemoryManager & getMemoryManager()
#define XALAN_HARNESS_EXPORT
bool domCompare(const XalanNode &gold, const XalanNode &doc)
Utility methods used to perform a DOM Compare.
void checkAPIResults(const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, MemoryManager &, bool containsOnly=false)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This is an abstraction of the StylesheetRoot class.
FormatterListener * getXMLFormatter(PrintWriter &resultWriter, int indentAmount, const XalanDOMString &mimeEncoding, const StylesheetRoot *stylesheet)
Utility method used to create a FormatterToXML FormatterListener.
bool diffAttr(const XalanNode *gAttr, const XalanNode *dAttr)
Utility methods used to diff two attribute nodes.
bool getParams(int argc, char *argv[], const char *outDir, bool fsetGold=true)
StreamType & getHelpStream()
XalanDOMString currentNode
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)
const MemoryManager & getMemoryManager() const
XalanDOMString xmlFileURL
XalanDOMString & getXercesVersion(XalanDOMString &theResult)
Utility methods used to get Xerces Version number.
bool domCompare(const XalanDocument &gold, const XalanDocument &doc)
Utility methods used to perform a DOM Compare.
reportStruct(MemoryManager &theManager)
void checkResults(const XalanDOMString &outputFile, const XalanDOMString &goldFile, XalanXMLFileReporter &logfile)
XalanFileUtility(MemoryManager &theManager)
Simple constructor, does not perform initialization.
bool compareSerializedResults(const XalanDOMString &transformResult, const XalanDOMString &goldInputSource)
int getFailureCount() const
XalanDOMString & getDrive(XalanDOMString &theResult)
Utility method used to get test files from a specific directory.
XalanVector< char > CharVectorType
bool diffNode(const XalanNode *gold, const XalanNode *doc)
Utility methods used to diff two nodes.
void reportPassFail(XalanXMLFileReporter &logfile)
Utility methods used to report Pass/Fail numbers.
void setVerbose(bool flag)
bool checkDir(const XalanDOMString &directory)
Utility method determines if directory exists.
XalanDOMString xslFileURL
bool diffElement2(const XalanNode &gold, const XalanNode &doc)
Utility methods used to diff two Element nodes.
bool diffElement(const XalanNode &gold, const XalanNode &doc)
Utility methods used to diff two Element nodes.
cmdParams(MemoryManager &theManager)
const char * getHelpMessage()
bool fileCompare(const char *goldFile, const char *outputFile)
void checkDOMResults(const XalanDOMString &theOutputFile, const XalanCompiledStylesheet *compiledSS, const XalanSourceTreeDocument *dom, const XSLTInputSource &goldInputSource, XalanXMLFileReporter &logfile)
Utility method used to compare the results.
void checkAndCreateDir(const XalanDOMString &directory)
Utility method used to create default directories when neccessary.
This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all styl...
void analyzeResults(XalanTransformer &xalan, const XalanDOMString &resultsFile)
XalanDOMString & generateUniqRunid(XalanDOMString &theResult)
Utility method used to generate UniqRunid.
FileNameVectorType & getTestFileNames(const XalanDOMString &baseDir, const XalanDOMString &relDir, bool useDirPrefix, FileNameVectorType &theFiles)
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.
XalanVector< XalanDOMString > FileNameVectorType
void checkAPIResults(const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, bool containsOnly=false)
XalanDOMString testOrFile
XalanDOMString & getXSLFileName(const XalanDOMString &theXMLFileName, XalanDOMString &theResult)
Utility method used to get XSL file based on XML file.
FileNameVectorType & getDirectoryNames(const XalanDOMString &rootDirectory, FileNameVectorType &theFiles)
Utility method used to get subdirectories from a specific directory.