1 #ifndef FWCore_Framework_GenericHandle_h 2 #define FWCore_Framework_GenericHandle_h 51 "Handle<GenericObject> told to use uknown type '",
53 "'.\n Please check spelling or that a module uses this type in the job.");
59 type_(iType), prod_(), prov_(
nullptr) {
69 whyFailedFactory_(h.whyFailedFactory_) {
99 return prod_ && 0!= prov_;
103 return bool(whyFailedFactory_);
106 if(this->failedToGet()) {
107 whyFailedFactory_->make()->raise();
119 void clear() { prov_ = 0; whyFailedFactory_=
nullptr;}
122 whyFailedFactory_=iWhyFailed;
ObjectWithDict const & operator*() const
Handle(Handle< GenericObject > const &h)
Provenance const * provenance() const
Handle(ObjectWithDict const &prod, Provenance const *prov, ProductID const &)
Handle(std::string const &iName)
Throws exception if iName is not a known C++ class type.
ObjectWithDict const * operator->() const
void swap(Association< C > &lhs, Association< C > &rhs)
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
TypeWithDict const & type() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
ObjectWithDict const * product() const
Handle< GenericObject > GenericHandle
Handle< GenericObject > & operator=(Handle< GenericObject > const &rhs)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void convert_handle(BasicHandle &&bh, Handle< T > &result)
void setWhyFailedFactory(std::shared_ptr< HandleExceptionFactory > const &iWhyFailed)
Handle(TypeWithDict const &iType)
Throws exception if iType is invalid.
void swap(Handle< GenericObject > &other)
This class is just a 'tag' used to allow a specialization of edm::Handle.
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_