/* * $Id: SunSMC.cpp,v 1.2 2008/08/07 18:25:41 tyreld Exp $ * * SunSMC.cpp * * (C) Copyright IBM Corp. 2004, 2008 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Eclipse Public License from * http://www.opensource.org/licenses/eclipse-1.0.php * * Author: Adrian Schuur * Contributors: Viktor Mihajlovski * Markus Mueller * Steve Shepherd * Heidi Neumann * * Description: The version of cimom that ships with Solaris 8 has an * EnumerateClasses method instead of the (now) standard * EnumerateClassNames method. */ #include "CimXml.h" string Cimom::enumClassesSMC(URL *url, bool deep, bool qual) { string sb; genRequest(*url,"EnumerateClassNames"); sb = xmlHeader; sb += ""; for (int i=0,s=url->ns.size(); ins[i] + "\">"; sb += "\n"; sb += "cName + "\"/>\n"; if (deep) sb += "TRUE\n"; else sb += "FALSE\n"; if (qual) sb += "TRUE\n"; else sb += "FALSE\n"; sb += ""; sb += xmlTrailer; addPayload(sb); return getResponse(); }