00001 //----------------------------------------------------------------------------- 00002 // (c) 2006 by Basler Vision Technologies 00003 // Section: Vision Components 00004 // Project: GenApi 00005 // Author: Fritz Dierks 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_IENUMERATION_H 00032 #define GENAPI_IENUMERATION_H 00033 00034 #include <Base/GCStringVector.h> 00035 #include <GenApi/GenApiDll.h> 00036 #include <GenApi/IEnumEntry.h> 00037 #include <GenApi/Types.h> 00038 #include <GenApi/IValue.h> 00039 00040 #ifdef _MSC_VER 00041 # pragma warning ( push ) 00042 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY 00043 #endif 00044 00045 00046 namespace GENAPI_NAMESPACE 00047 { 00048 //************************************************************* 00049 // Enumeration interface 00050 //************************************************************* 00051 00056 interface GENAPI_DECL_ABSTRACT IEnumeration : virtual public IValue 00057 { 00058 00060 virtual void GetSymbolics(StringList_t & Symbolics) = 0; 00061 00063 virtual void GetEntries(NodeList_t & Entries) = 0; 00064 00066 virtual IEnumeration& operator=(const GENICAM_NAMESPACE::gcstring& ValueStr) = 0; 00067 00069 00073 virtual void SetIntValue(int64_t Value, bool Verify = true) = 0; 00074 00076 virtual GENICAM_NAMESPACE::gcstring operator*() = 0; 00077 00079 00084 virtual int64_t GetIntValue(bool Verify = false, bool IgnoreCache = false) = 0; 00085 00087 virtual IEnumEntry *GetEntryByName(const GENICAM_NAMESPACE::gcstring& Symbolic) = 0; 00088 00090 virtual IEnumEntry *GetEntry(const int64_t IntValue) = 0; 00091 00093 virtual IEnumEntry *GetCurrentEntry(bool Verify = false, bool IgnoreCache = false) = 0; 00094 00095 }; 00096 00097 } 00098 00099 #ifdef _MSC_VER 00100 # pragma warning ( pop ) 00101 #endif 00102 00103 #endif // ifndef GENAPI_IENUMERATION_H