44 class_<InstrumentDataServiceImpl, boost::noncopyable>(
"InstrumentDataServiceImpl", no_init)
45 .def(
"Instance", instance, return_value_policy<reference_existing_object>(),
46 "Return a reference to the singleton instance")
47 .staticmethod(
"Instance")
48 .def(
"doesExist", &InstrumentDataServiceImpl::doesExist, (arg(
"self"), arg(
"name")),
49 "Returns True if the object is found in the service.")
50 .def(
"retrieve", retrieveOrKeyError, (arg(
"self"), arg(
"name")),
51 "Retrieve the named object. Raises an exception if the name does not exist")
52 .def(
"remove", &IDSExporter::removeItem, (arg(
"self"), arg(
"name")),
"Remove a named object")
53 .def(
"clear", &InstrumentDataServiceImpl::clear, arg(
"self"),
"Removes all objects managed by the service.")
54 .def(
"size", &InstrumentDataServiceImpl::size, arg(
"self"),
"Returns the number of objects within the service")
55 .def(
"getObjectNames", &IDSExporter::getObjectNamesAsList, (arg(
"self"), arg(
"contain") =
""),
56 "Return the list of names currently known to the IDS");