INodeMapDyn.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. //-----------------------------------------------------------------------------
  2. // (c) 2006 by Basler Vision Technologies
  3. // Section: Vision Components
  4. // Project: GenApi
  5. // Author: Fritz Dierks
  6. // $Header$
  7. //
  8. // License: This file is published under the license of the EMVA GenICam Standard Group.
  9. // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
  10. // If for some reason you are missing this file please contact the EMVA or visit the website
  11. // (http://www.genicam.org) for a full copy.
  12. //
  13. // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
  14. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  15. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
  17. // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  18. // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19. // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  20. // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  21. // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  22. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  23. // POSSIBILITY OF SUCH DAMAGE.
  24. //-----------------------------------------------------------------------------
  25. /*!
  26. \file
  27. \brief Definition of interface INodeMapDyn
  28. \ingroup GenApi_PublicInterface
  29. */
  30. #ifndef GENAPI_INODEMAPDYN_H
  31. #define GENAPI_INODEMAPDYN_H
  32. #include "Base/GCBase.h"
  33. #include "INodeMap.h"
  34. #ifdef _MSC_VER
  35. # pragma warning ( push )
  36. # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
  37. #endif
  38. namespace GENAPI_NAMESPACE
  39. {
  40. //*************************************************************
  41. // INodeMap interface
  42. //*************************************************************
  43. /**
  44. \brief Interface to access the node map
  45. \ingroup GenApi_PublicInterface
  46. */
  47. interface GENAPI_DECL_ABSTRACT INodeMapDyn : virtual public INodeMap
  48. {
  49. //! Deletes all Nodes from the map
  50. virtual void ClearAllNodes() = 0;
  51. //! Loads an XML from a file
  52. virtual void LoadXMLFromFile(const GENICAM_NAMESPACE::gcstring& FileName) = 0;
  53. //! Loads an XML from a file with injection
  54. virtual void LoadXMLFromFileInject(const GENICAM_NAMESPACE::gcstring& TargetFileName, const GENICAM_NAMESPACE::gcstring& InjectFileName) = 0;
  55. //! Loads an XML from a string
  56. virtual void LoadXMLFromString(const GENICAM_NAMESPACE::gcstring& XMLData) = 0;
  57. //! Loads an XML from a string with injection
  58. virtual void LoadXMLFromStringInject(const GENICAM_NAMESPACE::gcstring& TargetXMLData, const GENICAM_NAMESPACE::gcstring& InjectXMLData) = 0;
  59. //! Loads an XML, checks it for correctness, pre-processes it, caches it, and optionally applies a style sheet, and optionally writes it to a file
  60. virtual void PreprocessXMLFromFile(
  61. const GENICAM_NAMESPACE::gcstring& XMLFileName, //!> The name of the XML file to process
  62. const GENICAM_NAMESPACE::gcstring& StyleSheetFileName, //!> Optional name of a style sheet which is applied after the pre-processor (can be empty string)
  63. //!> This has no effect if the OutputFileName is an empty string
  64. const GENICAM_NAMESPACE::gcstring& OutputFileName, //!> Optional name of an output file into which the processed data is written (can be empty string)
  65. const uint32_t XMLValidation = xvDefault //!> Optional bit mask formed from EXMLValidation enumeration indicating which tests should be performed on the XML file
  66. ) = 0;
  67. //! Injects an XML file into a target file
  68. virtual void MergeXMLFiles(
  69. const GENICAM_NAMESPACE::gcstring& TargetFileName, //!> Name of the target XML file to process
  70. const GENICAM_NAMESPACE::gcstring& InjectedFileName, //!> Name of the Injected XML file to process
  71. const GENICAM_NAMESPACE::gcstring& OutputFileName //!> Name of the oputput file
  72. ) = 0;
  73. //! Extract independent subtree
  74. virtual void ExtractIndependentSubtree(
  75. const GENICAM_NAMESPACE::gcstring& XMLData, //!> The XML data the subtree is extracted from.
  76. const GENICAM_NAMESPACE::gcstring& InjectXMLData, //!> Optional XML data that is injected before extracting the subtree. No effect if an empty string is passed.
  77. const GENICAM_NAMESPACE::gcstring& SubTreeRootNodeName,//!> The name of the node that represents the root of the subtree that shall be extracted.
  78. GENICAM_NAMESPACE::gcstring& ExtractedSubtree //!> The returned extracted subtree as string.
  79. ) = 0;
  80. //! Gets a list of supported schema versions
  81. /*! Each list entry is a string with the format "<Major>.<Minor>" were <Major> and <Minor> are integers
  82. Example: {"1.1", "1.2"} indicates that the schema v1.1 and v1.2 are supported.
  83. The SubMinor version number is not given since it is for fully compatible bug fixes only
  84. */
  85. virtual void GetSupportedSchemaVersions( GENICAM_NAMESPACE::gcstring_vector &SchemaVersions ) = 0;
  86. //! Loads an XML from a ZIP file
  87. virtual void LoadXMLFromZIPFile(const GENICAM_NAMESPACE::gcstring & ZipFileName) = 0;
  88. //! Loads an XML from a ZIP data buffer
  89. virtual void LoadXMLFromZIPData(const void* zipData, size_t zipSize) = 0;
  90. //! Loads a Zipped XML, checks it for correctness, pre-processes it, caches it, and optionally applies a style sheet, and optionally writes it to a file
  91. virtual void PreprocessXMLFromZIPFile(
  92. const GENICAM_NAMESPACE::gcstring& XMLFileName, //!> The name of the XML file to process
  93. const GENICAM_NAMESPACE::gcstring& StyleSheetFileName, //!> Optional name of a style sheet which is applied after the pre-processor (can be empty string)
  94. //!> This has no effect if the OutputFileName is an empty string
  95. const GENICAM_NAMESPACE::gcstring& OutputFileName, //!> Optional name of an output file into which the processed data is written (can be empty string)
  96. const uint32_t XMLValidation = xvDefault //!> Optional bit mask formed from EXMLValidation enumeration indicating which tests should be performed on the XML file
  97. ) = 0;
  98. };
  99. }
  100. #ifdef _MSC_VER
  101. # pragma warning ( pop )
  102. #endif
  103. #endif // ifndef GENAPI_INODEMAPDYN_H