Command.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2006 by Basler Vision Technologies
00003 //  Section: Vision Components
00004 //  Project: GenApi
00005 //  Author:  Hartmut Nebelung
00006 //  $Header$
00007 //
00008 //  License: This file is published under the license of the EMVA GenICam  Standard Group.
00009 //  A text file describing the legal terms is included in  your installation as 'GenICam_license.pdf'.
00010 //  If for some reason you are missing  this file please contact the EMVA or visit the website
00011 //  (http://www.genicam.org) for a full copy.
00012 //
00013 //  THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
00014 //  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00015 //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00016 //  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD  GROUP
00017 //  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL,
00018 //  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  LIMITED TO,
00019 //  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS;
00020 //  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY,
00021 //  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)
00022 //  ARISING IN ANY WAY OUT OF THE USE  OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00023 //  POSSIBILITY OF SUCH DAMAGE.
00024 //-----------------------------------------------------------------------------
00031 #ifndef GENAPI_COMMAND_H
00032 #define GENAPI_COMMAND_H
00033 
00034 #include "../ICommand.h"
00035 #include "Node.h"
00036 #include "BaseT.h"
00037 #include "ValueT.h"
00038 #include "NodeT.h"
00039 #include "CommandT.h"
00040 #include "PolyReference.h"
00041 
00042 namespace GENAPI_NAMESPACE
00043 {
00044 
00045     //*************************************************************
00046     // CCommand class
00047     //*************************************************************
00048 
00059     class CCommandImpl : public  ICommand, public CNodeImpl
00060     {
00061     public:
00063         CCommandImpl();
00064 
00065         //-------------------------------------------------------------
00067         EAccessMode InternalGetAccessMode() const;
00068 
00070         virtual EInterfaceType InternalGetPrincipalInterfaceType() const
00071         {
00072             return intfICommand;
00073         }
00074 
00075         //-------------------------------------------------------------
00077 
00079         virtual bool Poll( int64_t ElapsedTime );
00080 
00081         //-------------------------------------------------------------
00083         //\{
00084         // Get value of the node as string
00085         virtual GENICAM_NAMESPACE::gcstring InternalToString(bool Verify = false, bool IgnoreCache = false);
00086 
00087         // Set value of the node as string
00088         virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring& valueString, bool Verify = true);
00089 
00090         // \}
00091 
00092     protected:
00093         //-------------------------------------------------------------
00095         //\{
00096         // do it!
00097         virtual void InternalExecute(bool Verify = true);
00098 
00099         // done ?
00100         virtual bool InternalIsDone(bool Verify, bool &FireCallbacks );
00101         // \}
00102 
00103 
00104     public:
00106         virtual void SetProperty( CProperty &Property );
00107         virtual bool GetProperty( CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList ) const;
00108         
00109         
00110         //-------------------------------------------------------------
00111         // Initializing
00112         //-------------------------------------------------------------
00113 
00114     protected:
00115 
00116         //-------------------------------------------------------------
00117         // Member variables
00118         //-------------------------------------------------------------
00119 
00121         typedef enum _EStatus
00122         {
00123             statusUninitialized,
00124             statusIdle,
00125             statusBusy
00126          } EStatus;
00127 
00129         EStatus m_Status;
00130 
00132         CIntegerPolyRef m_Value;
00133 
00135         CIntegerPolyRef m_CommandValue;
00136 
00137     };
00138 
00139 
00140     class CCommand : public BaseT< ValueT< NodeT< CommandT< CCommandImpl > > > >
00141     {
00142     };
00143 }
00144 
00145 #endif // GENAPI_COMMAND_H


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02