11 #include "Exception.h" 15 enum WhichAlternative { none, first, second };
21 WhichAlternative
pos = none;
28 inline WhichAlternative which()
const {
return pos; }
33 throw WrongTypeException(
"Access of XBMCAddon::Alternative as incorrect type");
40 inline const T1& former()
const 43 throw WrongTypeException(
"Access of XBMCAddon::Alternative as incorrect type");
50 throw WrongTypeException(
"Access of XBMCAddon::Alternative as incorrect type");
57 inline const T2& later()
const 60 throw WrongTypeException(
"Access of XBMCAddon::Alternative as incorrect type");
64 inline operator T1& () {
return former(); }
65 inline operator const T1& ()
const {
return former(); }
66 inline operator T2& () {
return later(); }
67 inline operator const T2& ()
const {
return later(); }
Definition: ThreadsTest1.cpp:132
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
Definition: LibInputPointer.h:13
Definition: Alternative.h:17