00001 /******************************************************************************* 00002 * Copyright (C) 2004 Vintela, Inc. All rights reserved. 00003 * 00004 * Redistribution and use in source and binary forms, with or without 00005 * modification, are permitted provided that the following conditions are met: 00006 * 00007 * - Redistributions of source code must retain the above copyright notice, 00008 * this list of conditions and the following disclaimer. 00009 * 00010 * - Redistributions in binary form must reproduce the above copyright notice, 00011 * this list of conditions and the following disclaimer in the documentation 00012 * and/or other materials provided with the distribution. 00013 * 00014 * - Neither the name of Vintela, Inc. nor the names of its 00015 * contributors may be used to endorse or promote products derived from this 00016 * software without specific prior written permission. 00017 * 00018 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' 00019 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00020 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00021 * ARE DISCLAIMED. IN NO EVENT SHALL Vintela, Inc. OR THE CONTRIBUTORS 00022 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00023 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00024 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00025 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00026 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00027 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00028 * POSSIBILITY OF SUCH DAMAGE. 00029 *******************************************************************************/ 00030 00036 #include "OWBI1_config.h" 00037 #include "OWBI1_ResultHandlers.hpp" 00038 #include "OWBI1_Array.hpp" 00039 #include "OWBI1_Enumeration.hpp" 00040 #include "OWBI1_CIMClass.hpp" 00041 #include "OWBI1_CIMObjectPath.hpp" 00042 #include "OWBI1_CIMInstance.hpp" 00043 #include "OWBI1_CIMQualifierType.hpp" 00044 #include "OW_TempFileStream.hpp" 00045 00046 namespace OWBI1 00047 { 00048 00050 void 00051 CIMClassEnumBuilder::doHandle(const CIMClass &c) 00052 { 00053 m_e.addElement(c); 00054 } 00055 00057 CIMClassEnumBuilder::~CIMClassEnumBuilder() 00058 { 00059 } 00060 00062 void 00063 CIMClassArrayBuilder::doHandle(const CIMClass &c) 00064 { 00065 m_a.push_back(c); 00066 } 00067 00069 CIMClassArrayBuilder::~CIMClassArrayBuilder() 00070 { 00071 } 00072 00074 void 00075 CIMNameArrayBuilder::doHandle(const CIMName &s) 00076 { 00077 m_a.push_back(s); 00078 } 00079 00081 CIMNameArrayBuilder::~CIMNameArrayBuilder() 00082 { 00083 } 00084 00086 void 00087 CIMNameEnumBuilder::doHandle(const CIMName &s) 00088 { 00089 m_e.addElement(s); 00090 } 00091 00093 CIMNameEnumBuilder::~CIMNameEnumBuilder() 00094 { 00095 } 00096 00098 void 00099 CIMObjectPathEnumBuilder::doHandle(const CIMObjectPath &cop) 00100 { 00101 m_e.addElement(cop); 00102 } 00103 00105 CIMObjectPathEnumBuilder::~CIMObjectPathEnumBuilder() 00106 { 00107 } 00108 00110 void 00111 CIMObjectPathArrayBuilder::doHandle(const CIMObjectPath &cop) 00112 { 00113 m_a.push_back(cop); 00114 } 00115 00117 CIMObjectPathArrayBuilder::~CIMObjectPathArrayBuilder() 00118 { 00119 } 00120 00122 void 00123 CIMInstanceEnumBuilder::doHandle(const CIMInstance &i) 00124 { 00125 m_e.addElement(i); 00126 } 00127 00129 CIMInstanceEnumBuilder::~CIMInstanceEnumBuilder() 00130 { 00131 } 00132 00134 void 00135 CIMInstanceArrayBuilder::doHandle(const CIMInstance &i) 00136 { 00137 m_a.push_back(i); 00138 } 00139 00141 CIMInstanceArrayBuilder::~CIMInstanceArrayBuilder() 00142 { 00143 } 00144 00146 void 00147 CIMQualifierTypeEnumBuilder::doHandle(const CIMQualifierType &qt) 00148 { 00149 m_e.addElement(qt); 00150 } 00151 00153 CIMQualifierTypeEnumBuilder::~CIMQualifierTypeEnumBuilder() 00154 { 00155 } 00156 00158 void 00159 CIMQualifierTypeArrayBuilder::doHandle(const CIMQualifierType &qt) 00160 { 00161 m_a.push_back(qt); 00162 } 00163 00165 CIMQualifierTypeArrayBuilder::~CIMQualifierTypeArrayBuilder() 00166 { 00167 } 00168 00169 } // end namespace OWBI1 00170 00171 00172