UserSharedPointerDefines.h
Go to the documentation of this file.
1 #ifndef AVT_VMBAPI_USERSHAREDPOINTER_H
2 #define AVT_VMBAPI_USERSHAREDPOINTER_H
3 
4 #include "..\..\..\..\VimbaNET\Include\NetPointer.h"
5 
6 namespace AVT {
7 namespace VmbAPINET {
8 
9 ref class Camera;
10 ref class Interface;
11 ref class Frame;
12 ref class Feature;
13 ref class AncillaryData;
14 
15 };
16 };
17 
18 namespace AVT {
19 namespace VmbAPI {
20 
21 // Set the calls for your implementation of the shared pointer functions
22 // a) Declaration
23 // b) Reset with argument
24 // c) Reset without argument
25 // d) == operator
26 // e) NULL test
27 // f) Access to underlying raw pointer
28 
29 // a) This is the define for a declaration.
30 #define SP_DECL( T ) NetPointer<T>
31 // b) This is the define for setting an existing shared pointer.
32 #define SP_SET( sp, rawPtr ) sp.Reset( rawPtr )
33 // c) This is the define for resetting without an argument to decrease the ref count.
34 #define SP_RESET( sp ) sp.Reset()
35 // d) This is the define for the equal operator. Shared pointers are usually considered equal when the raw pointers point to the same address.
36 #define SP_ISEQUAL( sp1, sp2 ) sp1.IsEqualTo(sp2)
37 // e) This is the define for the NULL check.
38 #define SP_ISNULL( sp ) sp.IsNull()
39 // f) This is the define for the raw pointer access. This is usually accomplished through the dereferencing operator (->).
40 #define SP_ACCESS( sp ) sp.AccessNative()
41 
42 class Camera;
43 typedef NetPointer<Camera, AVT::VmbAPINET::Camera> CameraPtr;
44 
45 class Interface;
46 typedef NetPointer<Interface, AVT::VmbAPINET::Interface> InterfacePtr;
47 
48 class Feature;
49 typedef NetPointer<Feature, AVT::VmbAPINET::Feature> FeaturePtr;
50 
51 class FeatureContainer;
52 typedef SP_DECL( FeatureContainer ) FeatureContainerPtr;
53 
54 class IFeatureObserver;
55 typedef SP_DECL( IFeatureObserver ) IFeatureObserverPtr;
56 
57 class Frame;
58 typedef NetPointer<Frame, AVT::VmbAPINET::Frame> FramePtr;
59 
60 class FrameHandler;
61 typedef SP_DECL( FrameHandler ) FrameHandlerPtr;
62 
63 class IFrameObserver;
64 typedef SP_DECL( IFrameObserver ) IFrameObserverPtr;
65 
67 typedef NetPointer<AncillaryData, AVT::VmbAPINET::AncillaryData> AncillaryDataPtr;
68 typedef NetPointer<AncillaryData, AVT::VmbAPINET::AncillaryData> ConstAncillaryDataPtr;
69 
70 class ICameraFactory;
71 typedef SP_DECL( ICameraFactory) ICameraFactoryPtr;
72 
74 typedef SP_DECL( IInterfaceListObserver ) IInterfaceListObserverPtr;
75 
77 typedef SP_DECL( ICameraListObserver ) ICameraListObserverPtr;
78 
79 class Mutex;
80 typedef SP_DECL( Mutex ) MutexPtr;
81 
82 class BasicLockable;
83 typedef SP_DECL( BasicLockable ) BasicLockablePtr;
84 
85 }}
86 
87 #include "..\..\..\..\VimbaNET\Include\NetCamera.h"
88 #include "..\..\..\..\VimbaNET\Include\NetInterface.h"
89 #include "..\..\..\..\VimbaNET\Include\NetFrame.h"
90 #include "..\..\..\..\VimbaNET\Include\NetFeature.h"
91 #include "..\..\..\..\VimbaNET\Include\NetAncillaryData.h"
92 
93 #endif /* AVT_VMBAPI_USERSHAREDPOINTER_H */
NetPointer< Frame, AVT::VmbAPINET::Frame > FramePtr
NetPointer< AncillaryData, AVT::VmbAPINET::AncillaryData > AncillaryDataPtr
#define SP_DECL(T)
NetPointer< Feature, AVT::VmbAPINET::Feature > FeaturePtr
NetPointer< Camera, AVT::VmbAPINET::Camera > CameraPtr
NetPointer< Interface, AVT::VmbAPINET::Interface > InterfacePtr
NetPointer< AncillaryData, AVT::VmbAPINET::AncillaryData > ConstAncillaryDataPtr


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Mon Jun 10 2019 12:50:39