Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
txRDFOut Class Reference

Helper class to report success and failure to RDF. More...

Collaboration diagram for txRDFOut:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 txRDFOut (ostream *aOut)
 txRDFOut (const nsACString &aName, txRDFOut *aParent)
 ~txRDFOut ()
void feed (const nsACString &aTest, PRBool aSuccess)
void succeeded ()
void failed ()

Private Attributes

nsCAutoString mName
ostream * mOut
PRUint32 mSuccess
PRUint32 mFail
txRDFOutmParent

Detailed Description

Helper class to report success and failure to RDF.

Definition at line 77 of file testXalan.cpp.


Constructor & Destructor Documentation

txRDFOut::txRDFOut ( ostream *  aOut) [inline, explicit]

Definition at line 80 of file testXalan.cpp.

        : mOut(aOut), mSuccess(0), mFail(0), mParent(nsnull)
    {
    }
txRDFOut::txRDFOut ( const nsACString &  aName,
txRDFOut aParent 
) [inline, explicit]

Definition at line 84 of file testXalan.cpp.

        : mName(aName), mOut(aParent->mOut), mSuccess(0), mFail(0),
          mParent(aParent)
    {
    }
txRDFOut::~txRDFOut ( ) [inline]

Definition at line 89 of file testXalan.cpp.

    {
        *mOut << "  <RDF:Description about=\"urn:x-buster:conf" <<
            mName.get() <<
            "\">\n" <<
            "    <NC:orig_succCount NC:parseType=\"Integer\">" <<
            mSuccess <<
            "</NC:orig_succCount>\n" <<
            "    <NC:orig_failCount NC:parseType=\"Integer\">" <<
            mFail <<
            "</NC:orig_failCount>\n" <<
            "  </RDF:Description>" << endl;
    }

Here is the call graph for this function:


Member Function Documentation

void txRDFOut::failed ( ) [inline]

Definition at line 125 of file testXalan.cpp.

    {
        if (mParent)
            mParent->failed();
        ++mFail;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void txRDFOut::feed ( const nsACString &  aTest,
PRBool  aSuccess 
) [inline]

Definition at line 103 of file testXalan.cpp.

    {
        *mOut << "  <RDF:Description about=\"urn:x-buster:" <<
            PromiseFlatCString(aTest).get() <<
            "\"\n                   NC:orig_succ=\"";
        if (aSuccess) {
            *mOut << "yes";
            succeeded();
        }
        else {
            *mOut << "no";
            failed();
        }
        *mOut << "\" />\n";
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void txRDFOut::succeeded ( ) [inline]

Definition at line 119 of file testXalan.cpp.

    {
        if (mParent)
            mParent->succeeded();
        ++mSuccess;
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 134 of file testXalan.cpp.

Definition at line 132 of file testXalan.cpp.

ostream* txRDFOut::mOut [private]

Definition at line 133 of file testXalan.cpp.

Definition at line 135 of file testXalan.cpp.

Definition at line 134 of file testXalan.cpp.


The documentation for this class was generated from the following file: