Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
PvSessionInfoSDP.h
1// *****************************************************************************
2//
3// Copyright (c) 2007, Pleora Technologies Inc., All rights reserved.
4//
5// *****************************************************************************
6
7#ifndef __PV_SESSIONINFOSDP_H__
8#define __PV_SESSIONINFOSDP_H__
9
10#include <PvSystemLib.h>
11#include <PvSystemEnums.h>
12
13
14class PvInterface;
15
21class PV_SYSTEM_API PvSessionInfoSDP
22{
23public:
24
29
36
42 uint32_t GetSessionID() const;
43
50 uint32_t GetSessionVersion() const;
51
57 std::string GetSessionName() const;
58
64 std::string GetSessionInfo() const;
65
72
79
85 uint16_t GetMediaTransportPort() const;
86
93
99 uint16_t GetMediaDepth() const;
100
107
113 uint32_t GetMediaWidth() const;
114
120 uint32_t GetMediaHeight() const;
121
127 uint32_t GetMediaFramerate() const;
128
134 bool GetMediaInterlaced() const;
135
142
149
156
163
170
177
183 bool IsLicenseValid() const;
184
190 const PvInterface *GetInterface() const;
191
192protected:
193
194#ifndef PV_GENERATING_DOXYGEN_DOC
195
199 const PvSessionInfoSDP &operator=( const PvSessionInfoSDP &aFrom );
200
204 void Init();
205
211 void SetLicenseValid( bool aValue ) { mLicenseValid = aValue; }
212
218 void SetConnectionID( const std::string &aValue ) { *mConnectionID = aValue; }
219
225 void SetDisplayID( const std::string &aValue ) { *mDisplayID = aValue; }
226
232 void SetUniqueID( const std::string &aValue ) { *mUniqueID = aValue; }
233
239 void SetCompareID( const std::string &aValue ) { *mCompareID = aValue; }
240
246 void SetLicenseMessage( const std::string &aValue ) { *mLicenseMessage = aValue; }
247
253 std::string *GetCompareID() { return mCompareID; }
254
255#endif // PV_GENERATING_DOXYGEN_DOC
256
257private:
258
259 bool mLicenseValid;
260 std::string *mConnectionID;
261 std::string *mDisplayID;
262 std::string *mUniqueID;
263 std::string *mCompareID;
264 std::string *mLicenseMessage;
265 std::string *mContent;
266
267 const PvInterface *mInterface;
268
269 // Not implemented
272
273};
274
275
276#endif // __PV_SESSIONINFOSDP_H__
277
PvSystem library enumerations.
Represents one interface (network adapter or USB host controller) on a system (the PC)
Definition PvInterface.h:33
A class to read every SDP attribute for a given session.
Definition PvSessionInfoSDP.h:22
PvString GetMediaType() const
Gets the media type (typically video).
uint16_t GetMediaDepth() const
Gets the depth of each sample (e.g. 8 bits).
PvString GetConnectionID() const
Gets the connection ID.
uint32_t GetMediaFramerate() const
Gets the frame rate.
bool IsConfigurationValid() const
Checks if the configuration is valid.
uint16_t GetMediaTransportPort() const
Gets the port to which the media is sent.
bool IsLicenseValid() const
Checks if the license is valid.
PvString GetMediaSampling() const
Gets the sampling (e.g. RGB).
virtual ~PvSessionInfoSDP()
Virtual destructor.
PvSessionInfoSDP * Copy() const
Copies the PvSessionInfoSDP.
PvString GetMediaColorimetry() const
Gets the colorimetry.
uint32_t GetMediaHeight() const
Gets the height.
PvString GetContent() const
Gets the content of the session (e.g. h264)
PvString GetUniqueID() const
Gets the unique ID.
uint32_t GetSessionID() const
Gets the session identifier.
bool GetMediaInterlaced() const
Returns if the media is interlaced.
uint32_t GetMediaWidth() const
Gets the width.
std::string GetSessionName() const
Gets the session name.
uint32_t GetSessionVersion() const
Gets the SDP version (starts at 0).
PvString GetLicenseMessage() const
Gets a message about the license.
std::string GetSessionInfo() const
Gets all the information about the session.
const PvInterface * GetInterface() const
Gets the PvInterface where this session is discovered.
PvString GetConnectionIP() const
Gets the IP to connect to the session.
PvString GetDisplayID() const
Gets the display identifier.
String class.
Definition PvString.h:26

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com