Commit 91a9f41b authored by fogal1's avatar fogal1

I overloaded operator<< to allow for easier debugging.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@7173 18c085ea-50e0-402c-830e-de6fd14e8384
parent 617171ee
......@@ -44,6 +44,36 @@
#include <avtWebpage.h>
static const char* bool2str(bool b) { return b ? "yes" : "no"; }
// ****************************************************************************
// Function: operator<<
//
// Arguments:
// os output stream to write to
// c contract information to query.
//
// Programmer: Tom Fogal
// Creation: May 3, 2009
//
// Modifications:
//
// ****************************************************************************
ostream& operator<<(ostream &os, const avtContract& c)
{
os << "avtContract information:"
<< "\tpipeline index: " << c.pipelineIndex << "\n"
<< "\tstreaming possible: " << bool2str(c.canDoStreaming) << "\n"
<< "\tstreaming: " << bool2str(c.doingOnDemandStreaming) << "\n"
<< "\tload balancing: " << bool2str(c.useLoadBalancing) << "\n"
<< "\tmesh optimizations:" << "\n"
<< "\t\tcurvilinear: " << bool2str(c.haveCurvilinearMeshOptimizations)
<< "\n\t\trectilinear: " << bool2str(c.haveRectilinearMeshOptimizations)
<< "\n\tfilters: " << c.nFilters << std::endl;
return os;
}
// ****************************************************************************
// Method: avtContract constructor
//
......
......@@ -43,10 +43,10 @@
#ifndef AVT_CONTRACT_H
#define AVT_CONTRACT_H
#include <pipeline_exports.h>
#include <iosfwd>
#include <pipeline_exports.h>
#include <ref_ptr.h>
#include <avtDataRequest.h>
class avtWebpage;
......@@ -94,10 +94,14 @@ typedef ref_ptr<avtContract> avtContract_p;
// Hank Childs, Sun Mar 9 06:36:49 PST 2008
// Add new data member for on demand streaming.
//
// Tom Fogal, Sun May 3 17:52:35 MDT 2009
// I overloaded operator<< to allow for easier debugging.
//
// ****************************************************************************
class PIPELINE_API avtContract
{
friend ostream& operator<<(ostream &, const avtContract&);
public:
avtContract(avtDataRequest_p, int);
avtContract(avtContract_p);
......@@ -152,8 +156,4 @@ class PIPELINE_API avtContract
// meaningful, that's fine.
avtContract(const avtContract &) {;};
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment