Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
us Namespace Reference

Namespaces

 LDAPExpr
 
 LDAPExprConstants
 
 ServiceConstants
 

Classes

class  Any
 
class  BadAnyCastException
 
class  ExplicitlySharedDataPointer
 
struct  InterfaceType
 
class  LDAPFilter
 
class  LDAPProp
 
struct  MakeInterfaceMap
 
class  Module
 
struct  ModuleActivator
 
class  ModuleEvent
 
struct  ModuleEventHook
 
struct  ModuleFindHook
 
struct  ModuleInfo
 
class  ModuleRegistry
 
class  ModuleResource
 
class  ModuleResourceStream
 
class  ModuleSettings
 
class  ModuleVersion
 
struct  PrototypeServiceFactory
 
class  ServiceEvent
 
class  ServiceException
 
class  ServiceFactory
 
struct  ServiceFindHook
 
class  ServiceObjects
 
class  ServiceObjects< void >
 
class  ServiceObjectsBase
 
class  ServiceReference
 
class  ServiceReferenceBase
 
class  ServiceRegistration
 
class  ServiceRegistrationBase
 
class  ServiceTracker
 
struct  ServiceTrackerCustomizer
 
class  ServiceTrackerPrivate
 
class  SharedData
 
class  SharedDataPointer
 
class  SharedLibrary
 
class  ShrinkableMap
 
class  ShrinkableVector
 
class  TrackedService
 
struct  TrackedTypeTraits< S, T * >
 
struct  TrackedTypeTraitsBase
 

Typedefs

typedef ServiceReference< void > ServiceReferenceU
 
typedef std::map< std::string, void * > InterfaceMap
 
typedef US_UNORDERED_MAP_TYPE< std::string, AnyServiceProperties
 
typedef ServiceRegistration< void > ServiceRegistrationU
 
typedef US_UNORDERED_MAP_TYPE< std::string, Module * > ModuleMap
 

Functions

US_Core_EXPORT std::string any_value_to_string (const Any &any)
 
US_Core_EXPORT std::string any_value_to_json (const Any &val)
 
US_Core_EXPORT std::string any_value_to_json (const std::string &val)
 
US_Core_EXPORT std::string any_value_to_json (bool val)
 
template<class T >
std::string any_value_to_string (const T &val)
 
template<class T >
std::string any_value_to_json (const T &val)
 
template<typename Iterator >
std::string container_to_string (Iterator i1, Iterator i2)
 
template<typename Iterator >
std::string container_to_json (Iterator i1, Iterator i2)
 
template<class E >
std::string any_value_to_string (const std::vector< E > &vec)
 
template<class E >
std::string any_value_to_json (const std::vector< E > &vec)
 
template<class E >
std::string any_value_to_string (const std::list< E > &l)
 
template<class E >
std::string any_value_to_json (const std::list< E > &l)
 
template<class E >
std::string any_value_to_string (const std::set< E > &s)
 
template<class E >
std::string any_value_to_json (const std::set< E > &s)
 
template<class M >
std::string any_value_to_string (const std::map< M, Any > &m)
 
template<class K , class V >
std::string any_value_to_string (const std::map< K, V > &m)
 
template<class M >
std::string any_value_to_json (const std::map< M, Any > &m)
 
template<class K , class V >
std::string any_value_to_json (const std::map< K, V > &m)
 
template<typename ValueType >
ValueType * any_cast (Any *operand)
 
template<typename ValueType >
const ValueType * any_cast (const Any *operand)
 
template<typename ValueType >
ValueType any_cast (const Any &operand)
 
template<typename ValueType >
ValueType any_cast (Any &operand)
 
template<typename ValueType >
const ValueType & ref_any_cast (const Any &operand)
 
template<typename ValueType >
ValueType & ref_any_cast (Any &operand)
 
template<typename ValueType >
ValueType * unsafe_any_cast (Any *operand)
 
template<typename ValueType >
const ValueType * unsafe_any_cast (const Any *operand)
 
template<class K >
std::string any_value_to_string (const std::map< K, Any > &m)
 
template<class K >
std::string any_value_to_json (const std::map< K, Any > &m)
 
static ModuleContextGetModuleContext ()
 Returns the module context of the calling module. More...
 
std::string GetDemangledName (const std::type_info &typeInfo)
 
template<class I >
bool InsertInterfaceType (InterfaceMap &im, I *i)
 
template<>
bool InsertInterfaceType< void > (InterfaceMap &, void *)
 
template<class I1 >
I1 * ExtractInterface (const InterfaceMap &map)
 
template<class T >
void swap (us::SharedDataPointer< T > &p1, us::SharedDataPointer< T > &p2)
 
template<class T >
void swap (us::ExplicitlySharedDataPointer< T > &p1, us::ExplicitlySharedDataPointer< T > &p2)
 
std::string GetLibraryPath_impl (void *)
 
void * GetSymbol_impl (const ModuleInfo &, const char *symbol)
 
bool IsInvalidQualifier (char c)
 
bool stricomp (const std::string::value_type &v1, const std::string::value_type &v2)
 
std::vector< std::string > AutoLoadModulesFromPath (const std::string &absoluteBasePath, const std::string &subDir)
 
std::vector< std::string > AutoLoadModules (const ModuleInfo &moduleInfo)
 
std::string GetLastErrorStr ()
 
MsgHandler installMsgHandler (MsgHandler h)
 
void message_output (MsgType msgType, const char *buf)
 
US_Core_EXPORT::std::string GetDemangledName (const ::std::type_info &typeInfo)
 
US_Core_EXPORT std::ostream & operator<< (std::ostream &os, ModuleEvent::Type eventType)
 
US_Core_EXPORT std::ostream & operator<< (std::ostream &os, const ModuleEvent &event)
 
US_Core_EXPORT std::ostream & operator<< (std::ostream &os, const ServiceEvent::Type &type)
 
US_Core_EXPORT std::ostream & operator<< (std::ostream &os, const ServiceEvent &event)
 

Variables

static StaticInitializationOrder _staticInitializationOrder
 
static const char PATH_SEPARATOR
 
static MsgHandler handler
 

Typedef Documentation

typedef US_UNORDERED_MAP_TYPE<std::string, Module*> us::ModuleMap

Definition at line 39 of file usModuleRegistry.cpp.

Definition at line 40 of file usModule.h.

Function Documentation

template<typename ValueType >
ValueType* us::any_cast ( Any operand)

any_cast operator used to extract the ValueType from an Any*. Will return a pointer to the stored value.

Example Usage:

MyType* pTmp = any_cast<MyType*>(pAny)

Will return NULL if the cast fails, i.e. types don't match.

Definition at line 377 of file usAny.h.

References us::Any::Type().

Referenced by ExtractImageStatistics(), FiberJoin(), mitk::FileReaderSelector::FileReaderSelector(), mitk::FileWriterSelector::FileWriterSelector(), mitk::FileReaderWriterBase::GetRegisteredMimeType(), main(), us::ServiceReferenceBase::operator<(), operator<<(), mitk::SurfaceStlIO::Read(), mitk::RawImageFileReaderService::Read(), us::ServiceRegistrationBase::SetProperties(), StartPeakExtraction(), and StartShConversion().

template<typename ValueType >
const ValueType* us::any_cast ( const Any operand)

any_cast operator used to extract a const ValueType pointer from an const Any*. Will return a const pointer to the stored value.

Example Usage:

const MyType* pTmp = any_cast<MyType*>(pAny)

Will return NULL if the cast fails, i.e. types don't match.

Definition at line 395 of file usAny.h.

References any_cast().

template<typename ValueType >
ValueType us::any_cast ( const Any operand)

any_cast operator used to extract a copy of the ValueType from an const Any&.

Example Usage:

MyType tmp = any_cast<MyType>(anAny)

Will throw a BadCastException if the cast fails. Dont use an any_cast in combination with references, i.e. MyType& tmp = ... or const MyType& = ... Some compilers will accept this code although a copy is returned. Use the ref_any_cast in these cases.

Definition at line 413 of file usAny.h.

References any_cast().

template<typename ValueType >
ValueType us::any_cast ( Any operand)

any_cast operator used to extract a copy of the ValueType from an Any&.

Example Usage:

MyType tmp = any_cast<MyType>(anAny)

Will throw a BadCastException if the cast fails. Dont use an any_cast in combination with references, i.e. MyType& tmp = ... or const MyType& tmp = ... Some compilers will accept this code although a copy is returned. Use the ref_any_cast in these cases.

Definition at line 433 of file usAny.h.

Referenced by any_cast(), ref_any_cast(), and unsafe_any_cast().

std::string us::any_value_to_json ( const Any val)

Definition at line 31 of file usAny.cpp.

References us::Any::ToJSON().

std::string us::any_value_to_json ( const std::string &  val)

Definition at line 36 of file usAny.cpp.

std::string us::any_value_to_json ( bool  val)

Definition at line 41 of file usAny.cpp.

template<class T >
std::string us::any_value_to_json ( const T &  val)

Definition at line 65 of file usAny.h.

References any_value_to_string().

template<class E >
std::string us::any_value_to_json ( const std::vector< E > &  vec)

Definition at line 113 of file usAny.h.

References container_to_json().

template<class E >
std::string us::any_value_to_json ( const std::list< E > &  l)

Definition at line 125 of file usAny.h.

References container_to_json().

template<class E >
std::string us::any_value_to_json ( const std::set< E > &  s)

Definition at line 137 of file usAny.h.

References container_to_json().

template<class M >
std::string us::any_value_to_json ( const std::map< M, Any > &  m)
template<class K , class V >
std::string us::any_value_to_json ( const std::map< K, V > &  m)

Definition at line 558 of file usAny.h.

template<class K >
std::string us::any_value_to_json ( const std::map< K, Any > &  m)

Definition at line 540 of file usAny.h.

Referenced by container_to_json().

std::string us::any_value_to_string ( const Any any)

Definition at line 26 of file usAny.cpp.

References us::Any::ToString().

Referenced by main().

template<class T >
std::string us::any_value_to_string ( const T &  val)

Definition at line 57 of file usAny.h.

template<class E >
std::string us::any_value_to_string ( const std::vector< E > &  vec)

Definition at line 107 of file usAny.h.

References container_to_string().

template<class E >
std::string us::any_value_to_string ( const std::list< E > &  l)

Definition at line 119 of file usAny.h.

References container_to_string().

template<class E >
std::string us::any_value_to_string ( const std::set< E > &  s)

Definition at line 131 of file usAny.h.

References container_to_string().

template<class M >
std::string us::any_value_to_string ( const std::map< M, Any > &  m)
template<class K , class V >
std::string us::any_value_to_string ( const std::map< K, V > &  m)

Definition at line 522 of file usAny.h.

template<class K >
std::string us::any_value_to_string ( const std::map< K, Any > &  m)

Definition at line 504 of file usAny.h.

Referenced by any_value_to_json(), and container_to_string().

std::vector<std::string> us::AutoLoadModules ( const ModuleInfo moduleInfo)
std::vector<std::string> us::AutoLoadModulesFromPath ( const std::string &  absoluteBasePath,
const std::string &  subDir 
)

Definition at line 109 of file usUtils.cpp.

References closedir(), dirent::d_name, dirent::d_type, DT_REG, DT_UNKNOWN, opendir(), and readdir().

Referenced by AutoLoadModules().

template<typename Iterator >
std::string us::container_to_json ( Iterator  i1,
Iterator  i2 
)

Definition at line 92 of file usAny.h.

References any_value_to_json().

Referenced by any_value_to_json().

template<typename Iterator >
std::string us::container_to_string ( Iterator  i1,
Iterator  i2 
)

Definition at line 74 of file usAny.h.

References any_value_to_string().

Referenced by any_value_to_string().

std::string us::GetDemangledName ( const std::type_info &  typeInfo)
US_Core_EXPORT ::std::string us::GetDemangledName ( const ::std::type_info &  typeInfo)

Definition at line 307 of file usUtils.cpp.

std::string us::GetLastErrorStr ( )

Definition at line 234 of file usUtils.cpp.

Referenced by us::SharedLibrary::Load(), and us::SharedLibrary::Unload().

std::string us::GetLibraryPath_impl ( void *  )

Definition at line 150 of file usModuleUtils.cpp.

void* us::GetSymbol_impl ( const ModuleInfo ,
const char *  symbol 
)

Definition at line 155 of file usModuleUtils.cpp.

template<class I >
bool us::InsertInterfaceType ( InterfaceMap im,
I *  i 
)
template<>
bool us::InsertInterfaceType< void > ( InterfaceMap ,
void *   
)
inline

Definition at line 155 of file usServiceInterface.h.

MsgHandler us::installMsgHandler ( MsgHandler  h)

Definition at line 263 of file usUtils.cpp.

References handler.

Referenced by MitkCoreActivator::Load().

bool us::IsInvalidQualifier ( char  c)

Definition at line 34 of file usModuleVersion.cpp.

void us::message_output ( MsgType  msgType,
const char *  buf 
)

Definition at line 270 of file usUtils.cpp.

References handler.

template<typename ValueType >
const ValueType& us::ref_any_cast ( const Any operand)

ref_any_cast operator used to return a const reference to the internal data.

Example Usage:

const MyType& tmp = ref_any_cast<MyType>(anAny);

Definition at line 449 of file usAny.h.

References any_cast().

Referenced by QmitkAnyVectorWidget::QmitkAnyVectorWidget(), and us::ServiceRegistrationBase::SetProperties().

template<typename ValueType >
ValueType& us::ref_any_cast ( Any operand)

ref_any_cast operator used to return a reference to the internal data.

Example Usage:

MyType& tmp = ref_any_cast<MyType>(anAny);

Definition at line 465 of file usAny.h.

References any_cast().

bool us::stricomp ( const std::string::value_type &  v1,
const std::string::value_type &  v2 
)

Definition at line 84 of file usLDAPExpr.cpp.

template<class T >
void us::swap ( us::SharedDataPointer< T > &  p1,
us::SharedDataPointer< T > &  p2 
)

Definition at line 265 of file usSharedData.h.

template<class T >
void us::swap ( us::ExplicitlySharedDataPointer< T > &  p1,
us::ExplicitlySharedDataPointer< T > &  p2 
)

Definition at line 269 of file usSharedData.h.

template<typename ValueType >
ValueType* us::unsafe_any_cast ( Any operand)

Definition at line 482 of file usAny.h.

template<typename ValueType >
const ValueType* us::unsafe_any_cast ( const Any operand)

Definition at line 497 of file usAny.h.

References any_cast().

Variable Documentation

StaticInitializationOrder us::_staticInitializationOrder
static

Definition at line 218 of file usModuleRegistry.cpp.

MsgHandler us::handler
static
const char us::PATH_SEPARATOR
static