51 py::module::import(
"lsst.daf.base.persistable");
53 py::class_<std::type_info>(mod,
"TypeInfo")
61 py::class_<PropertySet, std::shared_ptr<PropertySet>, Citizen>
cls(mod,
"PropertySet");
63 cls.def(py::init<bool>(),
"flat"_a =
false);
65 cls.def(
"deepCopy", &PropertySet::deepCopy);
66 cls.def(
"nameCount", &PropertySet::nameCount,
"topLevelOnly"_a =
true);
67 cls.def(
"names", &PropertySet::names,
"topLevelOnly"_a =
true);
68 cls.def(
"paramNames", &PropertySet::paramNames,
"topLevelOnly"_a =
true);
69 cls.def(
"propertySetNames", &PropertySet::propertySetNames,
"topLevelOnly"_a =
true);
70 cls.def(
"exists", &PropertySet::exists);
71 cls.def(
"isArray", &PropertySet::isArray);
72 cls.def(
"isUndefined", &PropertySet::isUndefined);
73 cls.def(
"isPropertySetPtr", &PropertySet::isPropertySetPtr);
74 cls.def(
"valueCount", &PropertySet::valueCount);
75 cls.def(
"typeOf", &PropertySet::typeOf, py::return_value_policy::reference);
76 cls.def(
"toString", &PropertySet::toString,
"topLevelOnly"_a =
false,
"indent"_a =
"");
77 cls.def(
"copy", &PropertySet::copy,
"dest"_a,
"source"_a,
"name"_a,
"asScalar"_a=
false);
78 cls.def(
"combine", &PropertySet::combine);
79 cls.def(
"remove", &PropertySet::remove);
80 cls.def(
"getAsBool", &PropertySet::getAsBool);
81 cls.def(
"getAsInt", &PropertySet::getAsInt);
82 cls.def(
"getAsInt64", &PropertySet::getAsInt64);
83 cls.def(
"getAsUInt64", &PropertySet::getAsUInt64);
84 cls.def(
"getAsDouble", &PropertySet::getAsDouble);
85 cls.def(
"getAsString", &PropertySet::getAsString);
86 cls.def(
"getAsPropertySetPtr", &PropertySet::getAsPropertySetPtr);
87 cls.def(
"getAsPersistablePtr", &PropertySet::getAsPersistablePtr);
89 declareAccessors<bool>(
cls,
"Bool");
90 declareAccessors<short>(
cls,
"Short");
91 declareAccessors<int>(
cls,
"Int");
92 declareAccessors<long>(
cls,
"Long");
93 declareAccessors<long long>(
cls,
"LongLong");
94 declareAccessors<unsigned long long>(
cls,
"UnsignedLongLong");
95 declareAccessors<float>(
cls,
"Float");
96 declareAccessors<double>(
cls,
"Double");
97 declareAccessors<nullptr_t>(
cls,
"Undef");
98 declareAccessors<std::string>(
cls,
"String");
99 declareAccessors<DateTime>(
cls,
"DateTime");
100 declareAccessors<std::shared_ptr<PropertySet>>(
cls,
"PropertySet");
ItemVariant const * other