00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 #ifndef COH_INTERFACE_SPEC_HPP
00017 #define COH_INTERFACE_SPEC_HPP
00018 
00019 #include "coherence/lang/compatibility.hpp"
00020 
00021 #include "coherence/lang/lang_spec.hpp"
00022 #include "coherence/lang/Object.hpp"
00023 #include "coherence/lang/TypedHandle.hpp"
00024 #include "coherence/lang/TypedHolder.hpp"
00025 
00026 COH_OPEN_NAMESPACE2(coherence,lang)
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046 
00047 
00048 
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057 
00058 
00059 template<class T, class I = implements<> >
00060 class interface_spec
00061     : public virtual Object, public virtual I::implements_chain
00062     {
00063     public:
00064 
00065 
00066 
00067         typedef interface_spec this_spec;
00068 
00069 
00070 
00071 
00072         typedef TypedHandle<T> Handle;
00073 
00074 
00075 
00076 
00077         typedef TypedHandle<const T> View;
00078 
00079 
00080 
00081 
00082         typedef TypedHolder<T> Holder;
00083 
00084 
00085 
00086 
00087         typedef typename I::interface_1  interface_1;
00088         typedef typename I::interface_2  interface_2;
00089         typedef typename I::interface_3  interface_3;
00090         typedef typename I::interface_4  interface_4;
00091         typedef typename I::interface_5  interface_5;
00092         typedef typename I::interface_6  interface_6;
00093         typedef typename I::interface_7  interface_7;
00094         typedef typename I::interface_8  interface_8;
00095         typedef typename I::interface_9  interface_9;
00096         typedef typename I::interface_10 interface_10;
00097         typedef typename I::interface_11 interface_11;
00098         typedef typename I::interface_12 interface_12;
00099         typedef typename I::interface_13 interface_13;
00100         typedef typename I::interface_14 interface_14;
00101         typedef typename I::interface_15 interface_15;
00102         typedef typename I::interface_16 interface_16;
00103 
00104         COH_GENERATE_CLASS_ID(T)
00105 
00106     private:
00107 
00108 
00109 
00110 
00111 
00112         static void create()
00113             {
00114             }
00115     };
00116 
00117 COH_CLOSE_NAMESPACE2
00118 
00119 #endif // COH_INTERFACE_SPEC_HPP