Functions
ArtServiceProvider.h File Reference
#include "dunecore/ArtSupport/ArtServicePointer.h"

Go to the source code of this file.

Functions

template<class S , class P >
const P * ArtServiceProviderFromService ()
 
template<class S >
const S::provider_type * DefaultArtServiceProvider ()
 
template<class P >
const P * ArtServiceProvider ()
 

Function Documentation

template<class P >
const P* ArtServiceProvider ( )

Definition at line 37 of file ArtServiceProvider.h.

37  {
38  std::cout << "ArtServiceProvider: No specialization found for " << typeid(P).name() << std::endl;
39  return nullptr;
40 }
static QCString name
Definition: declinfo.cpp:673
std::pair< float, std::string > P
QTextStream & endl(QTextStream &s)
template<class S , class P >
const P* ArtServiceProviderFromService ( )

Definition at line 21 of file ArtServiceProvider.h.

21  {
22  S* psvc = ArtServicePointer<S>();
23  if ( psvc == nullptr ) return nullptr;
24  return psvc->GetProviderPtr();
25 }
Definition: 044_section.h:5
template<class S >
const S::provider_type* DefaultArtServiceProvider ( )

Definition at line 30 of file ArtServiceProvider.h.

30  {
31  return ArtServiceProviderFromService<S, typename S::provider_type>();
32 }