MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetReflectionType

Method GetReflectionType

lib/base/value.cpp:245–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245Type::Ptr Value::GetReflectionType() const
246{
247 switch (GetType()) {
248 case ValueEmpty:
249 return Object::TypeInstance;
250 case ValueNumber:
251 return Type::GetByName("Number");
252 case ValueBoolean:
253 return Type::GetByName("Boolean");
254 case ValueString:
255 return Type::GetByName("String");
256 case ValueObject:
257 return boost::get<Object::Ptr>(m_Value)->GetReflectionType();
258 default:
259 return nullptr;
260 }
261}
262
263Value Value::Clone() const
264{

Callers 15

AddSuggestionsFunction · 0.45
GetTargetForVarMethod · 0.45
CanAccessConfigObjectMethod · 0.45
EvaluateFilterMethod · 0.45
HandleRequestMethod · 0.45
SerializeObjectAttrsMethod · 0.45
HandleRequestMethod · 0.45
PersistMessageMethod · 0.45
SyncRelayMessageMethod · 0.45
DeleteObjectHelperMethod · 0.45
HandleRequestMethod · 0.45
CanAccessObjectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected