TlInfo.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. //-----------------------------------------------------------------------------
  2. // Basler pylon SDK
  3. // Copyright (c) 2006-2021 Basler AG
  4. // http://www.baslerweb.com
  5. // Author: AH
  6. //-----------------------------------------------------------------------------
  7. /*!
  8. \file
  9. \brief Definition of Transport layer information object
  10. */
  11. #ifndef __TLINFO_H__
  12. #define __TLINFO_H__
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif
  16. #include <pylon/Platform.h>
  17. #ifdef _MSC_VER
  18. # pragma pack(push, PYLON_PACKING)
  19. #endif /* _MSC_VER */
  20. #include <pylon/stdinclude.h>
  21. #include <pylon/Info.h>
  22. namespace Pylon
  23. {
  24. namespace Key
  25. {
  26. ///Identifies the filename of the GenTL producer [GenTL consumer only].
  27. const char* const FileNameKey = "FileName";
  28. ///Identifies the InfoID of the GenTL producer [GenTL consumer only].
  29. const char* const InfoIDKey = "InfoID";
  30. ///Identifies the filename of the GenTL producer.
  31. const char* const VersionKey = "Version";
  32. } // namespace Key
  33. /**
  34. \ingroup Pylon_TransportLayer
  35. \brief Class used for storing the result of the transport
  36. layer enumeration process.
  37. Enumerating the available Transport Layer objects returns a list of
  38. CTlInfo objects (Pylon::TlInfoList_t). A CTlInfo object holds information
  39. about the enumerated transport layer.
  40. */
  41. class PYLONBASE_API CTlInfo : public CInfoBase
  42. {
  43. public:
  44. ///Retrieves the filename of the GenTL producer [GenTL consumer only].
  45. ///This property is identified by Key::FileNameKey.
  46. String_t GetFileName() const;
  47. ///Sets the above property.
  48. CTlInfo& SetFileName( const String_t& value );
  49. ///Returns true if the above property is available.
  50. bool IsFileNameAvailable() const;
  51. ///Retrieves the InfoID of the GenTL producer [GenTL consumer only].
  52. ///This property is identified by Key::VendorNameKey.
  53. String_t GetInfoID() const;
  54. ///Sets the above property.
  55. CTlInfo& SetInfoID( const String_t& value );
  56. ///Returns true if the above property is available.
  57. bool IsInfoIDAvailable() const;
  58. ///Retrieves the model name of the data producer
  59. ///This property is identified by Key::ModelNameKey.
  60. String_t GetModelName() const;
  61. ///Sets the above property.
  62. CTlInfo& SetModelName( const String_t& value );
  63. ///Returns true if the above property is available.
  64. bool IsModelNameAvailable() const;
  65. ///Retrieves the version of the transport layer.
  66. ///This property is identified by Key::VersionKey.
  67. String_t GetVersion() const;
  68. ///Sets the above property.
  69. CTlInfo& SetVersion( const String_t& value );
  70. ///Returns true if the above property is available.
  71. bool IsVersionAvailable() const;
  72. };
  73. }
  74. #ifdef _MSC_VER
  75. # pragma pack(pop)
  76. #endif /* _MSC_VER */
  77. #endif /* __TLINFO_H__ */