69 auto it = _attributes.
find(name);
70 if(
it != _attributes.
end())
return it->second;
76 _attributes[name] =
value;
177 const String &address =
"0.0.0.0");
208 String _originUsername =
"-";
211 String _originNetType =
"IN";
212 String _originAddrType =
"IP4";
213 String _originAddress =
"0.0.0.0";
214 String _connectionAddress;
Dynamic array container wrapping std::vector.
Definition list.h:40
List()=default
Default constructor. Creates an empty list.
void pushToBack(const T &value)
Pushes an item onto the back of the list.
Definition list.h:455
Iterator find(const K &key)
Finds the entry for key.
Definition map.h:189
Iterator end() noexcept
Returns a mutable iterator to one past the last entry.
Definition map.h:104
SDP session description (RFC 4566).
Definition sdpsession.h:127
uint64_t sessionId() const
Returns the session ID.
Definition sdpsession.h:160
SdpSession()=default
Default constructor.
void setSessionName(const String &name)
Sets the session name.
Definition sdpsession.h:154
String toString() const
Generates the SDP text representation.
const String & sessionName() const
Returns the session name (s= line).
Definition sdpsession.h:151
const String & originNetType() const
Returns the origin network type (e.g. "IN").
Definition sdpsession.h:180
const String & originAddrType() const
Returns the origin address type (e.g. "IP4").
Definition sdpsession.h:183
static Result< SdpSession > fromString(const String &sdp)
Parses an SDP text string into an SdpSession.
const promeki::List< SdpMediaDescription > & mediaDescriptions() const
Returns the list of media descriptions.
Definition sdpsession.h:195
const String & originAddress() const
Returns the origin address.
Definition sdpsession.h:186
SharedPtr< SdpSession > Ptr
Shared pointer type.
Definition sdpsession.h:131
void addMediaDescription(const SdpMediaDescription &md)
Adds a media description.
Definition sdpsession.h:198
uint64_t sessionVersion() const
Returns the session version.
Definition sdpsession.h:163
void setConnectionAddress(const String &address)
Sets the session-level connection address.
Definition sdpsession.h:192
promeki::List< SdpSession > List
List of SdpSession values.
Definition sdpsession.h:134
const String & connectionAddress() const
Returns the session-level connection address (c= line).
Definition sdpsession.h:189
void setOrigin(const String &username, uint64_t sessionId, uint64_t sessionVersion, const String &netType="IN", const String &addrType="IP4", const String &address="0.0.0.0")
Sets the origin (o= line) fields.
promeki::List< SdpSession::Ptr > PtrList
List of shared SdpSession pointers.
Definition sdpsession.h:137
const String & originUsername() const
Returns the originator username.
Definition sdpsession.h:157
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19
const T & value(const Result< T > &r)
Returns the value from a Result.
Definition result.h:56
#define PROMEKI_SHARED_FINAL(TYPE)
Macro for non-polymorphic native shared objects.
Definition sharedptr.h:88