// Author:
//
// $Log: CIMClass.h,v $
+// Revision 1.5 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.4 2001/02/26 10:13:24 karl
// documentation changes
//
_rep->toXml(out);
}
- /// CIMMethod print
- void print() const
+ /// CIMMethod print
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
/** CIMMethod identical - Compares with another class
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const ConstCIMClass& x) const
-//BEGIN_LICENSE
+///BEGIN_LICENSE
//
// Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
//
// Author:
//
// $Log: CIMClassRep.cpp,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
+
// Revision 1.3 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
out << "</CLASS>\n";
}
-void CIMClassRep::print() const
+void CIMClassRep::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- XmlWriter::indentedPrint(std::cout, tmp.getData(), 4);
+ XmlWriter::indentedPrint(os, tmp.getData(), 4);
// cout << tmp.getData() << endl;
}
// Author:
//
// $Log: CIMClassRep.h,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.3 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
void toXml(Array<Sint8>& out) const;
- void print() const;
+ void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMClassRep* x) const;
// Author:
//
// $Log: CIMInstance.h,v $
+// Revision 1.7 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.6 2001/02/27 09:32:35 karl
// Document cleanup
//
/** CIMMethod
*/
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
/** identical - Compares the CIMInstance with another CIMInstance
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const ConstCIMInstance& x) const
// Author:
//
// $Log: CIMInstanceRep.cpp,v $
+// Revision 1.5 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.4 2001/02/20 07:25:57 mike
// Added basic create-instance in repository and in client.
//
out << "</INSTANCE>\n";
}
-void CIMInstanceRep::print() const
+void CIMInstanceRep::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
String CIMInstanceRep::getInstanceName(const ConstCIMClass& cimClass) const
// Author:
//
// $Log: CIMInstanceRep.h,v $
+// Revision 1.5 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.4 2001/02/20 07:25:57 mike
// Added basic create-instance in repository and in client.
//
void toXml(Array<Sint8>& out) const;
- void print() const;
+ void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMInstanceRep* x) const;
// Author:
//
// $Log: CIMMethod.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
_rep->toXml(out);
}
/// method print - ATTN:
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
/// CIMMethod identical - ATTN
Boolean identical(const CIMConstMethod& x) const;
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const CIMConstMethod& x) const
// Author:
//
// $Log: CIMMethodRep.cpp,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
out << "</METHOD>\n";
}
-void CIMMethodRep::print() const
+void CIMMethodRep::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
CIMMethodRep::CIMMethodRep()
// Author:
//
// $Log: CIMMethodRep.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
void toXml(Array<Sint8>& out) const;
- virtual void print() const;
+ virtual void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMMethodRep* x) const;
// Author:
//
// $Log: CIMParameter.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const CIMConstParameter& x) const;
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const CIMConstParameter& x) const
// Author:
//
// $Log: CIMParameterRep.cpp,v $
-// Revision 1.1 2001/02/18 18:39:06 mike
-// new
+// Revision 1.2 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
//
// Revision 1.1 2001/02/16 02:07:06 mike
// Renamed many classes and headers (using new CIM prefixes).
}
}
-void CIMParameterRep::print() const
+void CIMParameterRep::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
Boolean CIMParameterRep::identical(const CIMParameterRep* x) const
// Author:
//
// $Log: CIMParameterRep.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
void toXml(Array<Sint8>& out) const;
- void print() const;
+ void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMParameterRep* x) const;
// Author:
//
// $Log: CIMProperty.h,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.3 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
}
/// mthod print -ATTN
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
/// CIMMethod identical - ATTN
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const ConstCIMProperty& x) const
// Author:
//
// $Log: CIMPropertyRep.cpp,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.3 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
}
}
-void CIMPropertyRep::print() const
+void CIMPropertyRep::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
Boolean CIMPropertyRep::identical(const CIMPropertyRep* x) const
// Author:
//
// $Log: CIMPropertyRep.h,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.3 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
void toXml(Array<Sint8>& out) const;
- void print() const;
+ void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMPropertyRep* x) const;
// Author:
//
// $Log: CIMQualifier.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
/** CIMMethod
*/
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
/** CIMMethod
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const CIMConstQualifier& x) const
// Author:
//
// $Log: CIMQualifierDecl.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
*/
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
/** CIMMethod
_rep->toXml(out);
}
- void print() const
+ void print(std::ostream &o=std::cout) const
{
_checkRep();
- _rep->print();
+ _rep->print(o);
}
Boolean identical(const CIMConstQualifierDecl& x) const
// Author:
//
// $Log: CIMQualifierDeclRep.cpp,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/26 04:33:28 mike
// Fixed many places where cim names were be compared with operator==(String,String).
// Changed all of these to use CIMName::equal()
out << "</QUALIFIER.DECLARATION>\n";
}
-void CIMQualifierDeclRep::print() const
+void CIMQualifierDeclRep::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
CIMQualifierDeclRep::CIMQualifierDeclRep()
// Author:
//
// $Log: CIMQualifierDeclRep.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
void toXml(Array<Sint8>& out) const;
- void print() const;
+ void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMQualifierDeclRep* x) const;
// Author:
//
// $Log: CIMQualifierList.cpp,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.3 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
_qualifiers[i].toXml(out);
}
-void CIMQualifierList::print() const
+void CIMQualifierList::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
Boolean CIMQualifierList::identical(const CIMQualifierList& x) const
// Author:
//
// $Log: CIMQualifierList.h,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.3 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
void toXml(Array<Sint8>& out) const;
- void print() const;
+ void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMQualifierList& x) const;
// Author:
//
// $Log: CIMQualifierRep.cpp,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/26 04:33:28 mike
// Fixed many places where cim names were be compared with operator==(String,String).
// Changed all of these to use CIMName::equal()
out << "</QUALIFIER>\n";
}
-void CIMQualifierRep::print() const
+void CIMQualifierRep::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
CIMQualifierRep::CIMQualifierRep()
// Author:
//
// $Log: CIMQualifierRep.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/19 01:47:16 mike
// Renamed names of the form CIMConst to ConstCIM.
//
void toXml(Array<Sint8>& out) const;
- void print() const;
+ void print(std::ostream &o=std::cout) const;
Boolean identical(const CIMQualifierRep* x) const;
// Author:
//
// $Log: CIMReference.cpp,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/26 04:33:28 mike
// Fixed many places where cim names were be compared with operator==(String,String).
// Changed all of these to use CIMName::equal()
out << "</VALUE.REFERENCE>\n";
}
-void CIMReference::print() const
+void CIMReference::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
const char* KeyBinding::typeToString(CIMType type)
// Author:
//
// $Log: CIMReference.h,v $
+// Revision 1.4 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.3 2001/02/26 04:33:28 mike
// Fixed many places where cim names were be compared with operator==(String,String).
// Changed all of these to use CIMName::equal()
/** print() Creates and prints to stdout the XML representation for
the CIM object path
*/
- void print() const;
+ void print(std::ostream &o=std::cout) const;
/// nameSpaceToXML - ATTN:
void nameSpaceToXml(Array<Sint8>& out) const;
/// localNameSpaceToXml - ATTN:
// Author:
//
// $Log: CIMValue.cpp,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/26 04:33:28 mike
// Fixed many places where cim names were be compared with operator==(String,String).
// Changed all of these to use CIMName::equal()
}
}
-void CIMValue::print() const
+void CIMValue::print(std::ostream &os) const
{
Array<Sint8> tmp;
toXml(tmp);
tmp.append('\0');
- std::cout << tmp.getData() << std::endl;
+ os << tmp.getData() << std::endl;
}
void CIMValue::set(Boolean x)
// Author:
//
// $Log: CIMValue.h,v $
+// Revision 1.3 2001/03/04 21:57:34 bob
+// Changed print methods to take a stream instead of hardcoded cout
+//
// Revision 1.2 2001/02/20 05:16:57 mike
// Implemented CIMInstance::getInstanceName()
//
void toXml(Array<Sint8>& out) const;
/// CIMMethod print - ATTN
- void print() const;
+ void print(std::ostream &o=std::cout) const;
/// CIMMethod toString - ATTN
String toString() const;