95 karl 1.2
96 static TableEntry _PerceivedSeverityTable[] =
97 {
98 { 0, "Unknown" },
99 { 1, "Unused 1" },
100 { 2, "Low" },
101 { 3, "Medium" },
102 { 4, "High" },
103 { 5, "Fatal" }
104 };
105
106 static TableEntry _ProbableCauseTable[] =
107 {
108 { 0, "Unknown" },
109 { 1, "Other" },
110 { 2, "Adapter/Card Error" },
111 { 3, "Application Subsystem Failure" },
112 { 4, "Bandwidth Reduced" },
113 { 5, "Connection Establishment Error" },
114 { 6, "Communications Protocol Error" },
115 { 7, "Communications Subsystem Failure" },
116 karl 1.2 { 8, "Configuration/Customization Error" },
117 { 9, "Congestion" },
118 { 10, "Corrupt Data" },
119 { 11, "CPU Cycles Limit Exceeded" },
120 { 12, "Dataset/Modem Error" },
121 { 13, "Degraded Signal" },
122 { 14, "DTE-DCE Interface Error" },
123 { 15, "Enclosure Door Open" },
124 { 16, "Equipment Malfunction" },
125 { 17, "Excessive Vibration" },
126 { 18, "File Format Error" },
127 { 19, "Fire Detected" },
128 { 20, "Flood Detected" },
129 { 21, "Framing Error" },
130 { 22, "HVAC Problem" },
131 { 23, "Humidity Unacceptable" },
132 { 24, "I/O Device Error" },
133 { 25, "Input Device Error" },
134 { 26, "LAN Error" },
135 { 27, "Non-Toxic Leak Detected" },
136 { 28, "Local Node Transmission Error" },
137 karl 1.2 { 29, "Loss of Frame" },
138 { 30, "Loss of Signal" },
139 { 31, "Material Supply Exhausted" },
140 { 32, "Multiplexer Problem" },
141 { 33, "Out of Memory" },
142 { 34, "Output Device Error" },
143 { 35, "Performance Degraded" },
144 { 36, "Power Problem" },
145 { 37, "Pressure Unacceptable" },
146 { 38, "Processor Problem (Internal Machine Error)" },
147 { 39, "Pump Failure" },
148 { 40, "Queue Size Exceeded" },
149 { 41, "Receive Failure" },
150 { 42, "Receiver Failure" },
151 { 43, "Remote Node Transmission Error" },
152 { 44, "Resource at or Nearing Capacity" },
153 { 45, "Response Time Excessive" },
154 { 46, "Retransmission Rate Excessive" },
155 { 47, "Software Error" },
156 { 48, "Software Program Abnormally Terminated" },
157 { 49, "Software Program Error (Incorrect Results)" },
158 karl 1.2 { 50, "Storage Capacity Problem" },
159 { 51, "Temperature Unacceptable" },
160 { 52, "Threshold Crossed" },
161 { 53, "Timing Problem" },
162 { 54, "Toxic Leak Detected" },
163 { 55, "Transmit Failure" },
164 { 56, "Transmitter Failure" },
165 { 57, "Underlying Resource Unavailable" },
166 { 58, "Version Mismatch" },
167 { 59, "Previous Alert Cleared" },
168 { 60, "Login Attempts Failed" },
169 { 61, "Software Virus Detected" },
170 { 62, "Hardware Security Breached" },
171 { 63, "Denial of Service Detected" },
172 { 64, "Security Credential Mismatch" },
173 { 65, "Unauthorized Access" },
174 { 66, "Alarm Received" },
175 { 67, "Loss of Pointer" },
176 { 68, "Payload Mismatch" },
177 { 69, "Transmission Error" },
178 { 70, "Excessive Error Rate" },
179 karl 1.2 { 71, "Trace Problem" },
180 { 72, "Element Unavailable" },
181 { 73, "Element Missing" },
182 { 74, "Loss of Multi Frame" },
183 { 75, "Broadcast Channel Failure" },
184 { 76, "Invalid Message Received" },
185 { 77, "Routing Failure" },
186 { 78, "Backplane Failure" },
187 { 79, "Identifier Duplication" },
188 { 80, "Protection Path Failure" },
189 { 81, "Sync Loss or Mismatch" },
190 { 82, "Terminal Problem" },
191 { 83, "Real Time Clock Failure" },
192 { 84, "Antenna Failure" },
193 { 85, "Battery Charging Failure" },
194 { 86, "Disk Failure" },
195 { 87, "Frequency Hopping Failure" },
196 { 88, "Loss of Redundancy" },
197 { 89, "Power Supply Failure" },
198 { 90, "Signal Quality Problem" },
199 { 91, "Battery Discharging" },
200 karl 1.2 { 92, "Battery Failure" },
201 { 93, "Commercial Power Problem" },
202 { 94, "Fan Failure" },
203 { 95, "Engine Failure" },
204 { 96, "Sensor Failure" },
205 { 97, "Fuse Failure" },
206 { 98, "Generator Failure" },
207 { 99, "Low Battery" },
208 { 100, "Low Fuel" },
209 { 101, "Low Water" },
210 { 102, "Explosive Gas" },
211 { 103, "High Winds" },
212 { 104, "Ice Buildup" },
213 { 105, "Smoke" },
214 { 106, "Memory Mismatch" },
215 { 107, "Out of CPU Cycles" },
216 { 108, "Software Environment Problem" },
217 { 109, "Software Download Failure" },
218 { 110, "Element Reinitialized" },
219 { 111, "Timeout" },
220 { 112, "Logging Problems" },
221 karl 1.2 { 113, "Leak Detected" },
222 { 114, "Protection Mechanism Failure" },
223 { 115, "Protecting Resource Failure" },
224 { 116, "Database Inconsistency" },
225 { 117, "Authentication Failure" },
226 { 118, "Breach of Confidentiality" },
227 { 119, "Cable Tamper" },
228 { 120, "Delayed Information" },
229 { 121, "Duplicate Information" },
230 { 122, "Information Missing" },
231 { 123, "Information Modification" },
232 { 124, "Information Out of Sequence" },
233 { 125, "Key Expired" },
234 { 126, "Non-Repudiation Failure" },
235 { 127, "Out of Hours Activity" },
236 { 128, "Out of Service" },
237 { 129, "Procedural Error" },
238 { 130, "Unexpected Information" },
239 };
240
241 static TableEntry _ErrorSourceFormatTable[] =
242 karl 1.2 {
243 { 0, "Unknown" },
244 { 1, "Other" },
245 { 2, "CIMObjectHandle" },
246 };
247
248 static TableEntry _CIMStatusCodeTable[] =
249 {
250 { 1, "CIM_ERR_FAILED" },
251 { 2, "CIM_ERR_ACCESS_DENIED" },
252 { 3, "CIM_ERR_INVALID_NAMESPACE" },
253 { 4, "CIM_ERR_INVALID_PARAMETER" },
254 { 5, "CIM_ERR_INVALID_CLASS" },
255 { 6, "CIM_ERR_NOT_FOUND" },
256 { 7, "CIM_ERR_NOT_SUPPORTED" },
257 { 8, "CIM_ERR_CLASS_HAS_CHILDREN" },
258 { 9, "CIM_ERR_CLASS_HAS_INSTANCES" },
259 { 10, "CIM_ERR_INVALID_SUPERCLASS" },
260 { 11, "CIM_ERR_ALREADY_EXISTS" },
261 { 12, "CIM_ERR_NO_SUCH_PROPERTY" },
262 { 13, "CIM_ERR_TYPE_MISMATCH" },
263 karl 1.2 { 14, "CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED" },
264 { 15, "CIM_ERR_INVALID_QUERY" },
265 { 16, "CIM_ERR_METHOD_NOT_AVAILABLE" },
266 { 17, "CIM_ERR_METHOD_NOT_FOUND" },
267 { 18, "CIM_ERR_UNEXPECTED_RESPONSE" },
268 { 19, "CIM_ERR_INVALID_RESPONSE_DESTINATION" },
269 { 20, "CIM_ERR_NAMESPACE_NOT_EMPTY" },
270 };
271
272 CIMError::CIMError() : _inst("CIM_Error")
273 {
274 _inst.addProperty(CIMProperty(
|
344 karl 1.2 }
345
346 CIMError::CIMError(const CIMError& x) : _inst(x._inst)
347 {
348 }
349
350 CIMError::~CIMError()
351 {
352 }
353
354 bool CIMError::getErrorType(ErrorTypeEnum& value) const
355 {
356 Uint16 t;
357 bool nullStat = Get(_inst, "ErrorType", t);
358 value = ErrorTypeEnum(t);
359 return nullStat;
360 }
361
362 void CIMError::setErrorType(ErrorTypeEnum value, bool null)
363 {
364 Set(_inst, "ErrorType", Uint16(value), null);
365 karl 1.2 }
366
367 bool CIMError::getOtherErrorType(String& value) const
368 {
369 return Get(_inst, "OtherErrorType", value);
370 }
371
372 void CIMError::setOtherErrorType(const String& value, bool null)
373 {
374 Set(_inst, "OtherErrorType", value, null);
375 }
376
377 bool CIMError::getOwningEntity(String& value) const
378 {
379 return Get(_inst, "OwningEntity", value);
380 }
381
382 void CIMError::setOwningEntity(const String& value, bool null)
383 {
384 Set(_inst, "OwningEntity", value, null);
385 }
386 karl 1.2
387 bool CIMError::getMessageID(String& value) const
388 {
389 return Get(_inst, "MessageID", value);
390 }
391
392 void CIMError::setMessageID(const String& value, bool null)
393 {
394 Set(_inst, "MessageID", value, null);
395 }
396
397 bool CIMError::getMessage(String& value) const
398 {
399 return Get(_inst, "Message", value);
400 }
401
402 void CIMError::setMessage(const String& value, bool null)
403 {
404 Set(_inst, "Message", value, null);
405 }
406
407 karl 1.2 bool CIMError::getMessageArguments(Array<String>& value) const
408 {
409 return Get(_inst, "MessageArguments", value);
410 }
411
412 void CIMError::setMessageArguments(const Array<String>& value, bool null)
413 {
414 Set(_inst, "MessageArguments", value, null);
415 }
416
417 bool CIMError::getPerceivedSeverity(
418 PerceivedSeverityEnum& value) const
419 {
420 Uint16 t;
421 bool nullStat = Get(_inst, "PerceivedSeverity", t);
422 value = PerceivedSeverityEnum(t);
423 return nullStat;
424 }
425
426 void CIMError::setPerceivedSeverity(
427 PerceivedSeverityEnum value, bool null)
428 karl 1.2 {
429 Set(_inst, "PerceivedSeverity", Uint16(value), null);
430 }
431
432 bool CIMError::getProbableCause(ProbableCauseEnum& value) const
433 {
434 Uint16 t;
435 bool nullStat = Get(_inst, "ProbableCause", t);
436 value = ProbableCauseEnum(t);
437 return nullStat;
438 }
439
440 void CIMError::setProbableCause(ProbableCauseEnum value, bool null)
441 {
442 Set(_inst, "ProbableCause", (Uint16)value, null);
443 }
444
445 bool CIMError::getProbableCauseDescription(String& value) const
446 {
447 return Get(_inst, "ProbableCauseDescription", value);
448 }
449 karl 1.2
450 void CIMError::setProbableCauseDescription(const String& value, bool null)
451 {
452 Set(_inst, "ProbableCauseDescription", value, null);
453 }
454
455 bool CIMError::getRecommendedActions(Array<String>& value) const
456 {
457 return Get(_inst, "RecommendedActions", value);
458 }
459
460 void CIMError::setRecommendedActions(const Array<String>& value, bool null)
461 {
462 Set(_inst, "RecommendedActions", value, null);
463 }
464
465 bool CIMError::getErrorSource(String& value) const
466 {
467 return Get(_inst, "ErrorSource", value);
468 }
469
470 karl 1.2 void CIMError::setErrorSource(const String& value, bool null)
471 {
472 Set(_inst, "ErrorSource", value, null);
473 }
474
475 bool CIMError::getErrorSourceFormat(
476 ErrorSourceFormatEnum& value) const
477 {
478 Uint16 t;
479 bool nullStat = Get(_inst, "ErrorSourceFormat", t);
480 value = ErrorSourceFormatEnum(t);
481 return nullStat;
482 }
483
484 void CIMError::setErrorSourceFormat(ErrorSourceFormatEnum value, bool null)
485 {
486 Set(_inst, "ErrorSourceFormat", Uint16(value), null);
487 }
488
489 bool CIMError::getOtherErrorSourceFormat(String& value) const
490 {
491 karl 1.2 return Get(_inst, "OtherErrorSourceFormat", value);
492 }
493
494 void CIMError::setOtherErrorSourceFormat(const String& value, bool null)
495 {
496 Set(_inst, "OtherErrorSourceFormat", value, null);
497 }
498
499 bool CIMError::getCIMStatusCode(CIMStatusCodeEnum& value) const
500 {
501 Uint32 t;
502 bool nullStat = Get(_inst, "CIMStatusCode", t);
503 value = CIMStatusCodeEnum(t);
504 return nullStat;
505 }
506
507 void CIMError::setCIMStatusCode(CIMStatusCodeEnum value, bool null)
508 {
509 Set(_inst, "CIMStatusCode", Uint32(value), null);
510 }
511
512 karl 1.2 bool CIMError::getCIMStatusCodeDescription(String& value) const
513 {
514 return Get(_inst, "CIMStatusCodeDescription", value);
515 }
516
517 void CIMError::setCIMStatusCodeDescription(const String& value, bool null)
518 {
519 Set(_inst, "CIMStatusCodeDescription", value, null);
520 }
521
522 const CIMInstance& CIMError::getInstance() const
523 {
524 return _inst;
525 }
526
527 template<class T>
528 void _Check(const String& name, CIMConstProperty& p, T* tag)
529 {
530 if (p.getName() == name)
531 {
|