Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
us Namespace Reference

Namespaces

 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 void(* MsgHandler) (MsgType, const char *)
 

Enumerations

enum  MsgType { DebugMsg, InfoMsg, WarningMsg, ErrorMsg }
 

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)
 
US_Core_EXPORT MsgHandler installMsgHandler (MsgHandler)
 

Typedef Documentation

◆ MsgHandler

typedef void(* us::MsgHandler) (MsgType, const char *)

Definition at line 32 of file usCoreConfig.h.

◆ ServiceReferenceU

Definition at line 40 of file usModule.h.

Enumeration Type Documentation

◆ MsgType

Enumerator
DebugMsg 
InfoMsg 
WarningMsg 
ErrorMsg 

Definition at line 31 of file usCoreConfig.h.

Function Documentation

◆ any_cast() [1/4]

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.

◆ any_cast() [2/4]

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 nullptr if the cast fails, i.e. types don't match.

Definition at line 377 of file usAny.h.

References us::Any::Type().

◆ any_cast() [3/4]

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.

◆ any_cast() [4/4]

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 nullptr if the cast fails, i.e. types don't match.

Definition at line 395 of file usAny.h.

◆ any_value_to_json() [1/10]

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

◆ any_value_to_json() [2/10]

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

◆ any_value_to_json() [3/10]

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().

◆ any_value_to_json() [4/10]

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().

◆ any_value_to_json() [5/10]

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.

◆ any_value_to_json() [6/10]

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

◆ any_value_to_json() [7/10]

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().

◆ any_value_to_json() [8/10]

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

◆ any_value_to_json() [9/10]

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().

◆ any_value_to_json() [10/10]

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().

◆ any_value_to_string() [1/8]

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

◆ any_value_to_string() [2/8]

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().

◆ any_value_to_string() [3/8]

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().

◆ any_value_to_string() [4/8]

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.

◆ any_value_to_string() [5/8]

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

◆ any_value_to_string() [6/8]

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().

◆ any_value_to_string() [7/8]

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().

◆ any_value_to_string() [8/8]

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

Definition at line 57 of file usAny.h.

◆ container_to_json()

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().

◆ container_to_string()

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().

◆ GetDemangledName()

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

◆ InsertInterfaceType()

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

◆ InsertInterfaceType< void >()

template<>
bool us::InsertInterfaceType< void > ( InterfaceMap ,
void *   
)
inline

Definition at line 155 of file usServiceInterface.h.

◆ installMsgHandler()

US_Core_EXPORT MsgHandler us::installMsgHandler ( MsgHandler  )

◆ ref_any_cast() [1/2]

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.

◆ ref_any_cast() [2/2]

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.

◆ swap() [1/2]

◆ swap() [2/2]

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

Definition at line 268 of file usSharedData.h.

◆ unsafe_any_cast() [1/2]

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

Definition at line 482 of file usAny.h.

◆ unsafe_any_cast() [2/2]

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

Definition at line 497 of file usAny.h.