mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Context: Refine API
This commit is contained in:
parent
cf428b8db4
commit
311cb77b36
5 changed files with 12 additions and 10 deletions
|
@ -124,13 +124,14 @@ private:
|
|||
std::string v_;
|
||||
public:
|
||||
_SrsContextId();
|
||||
_SrsContextId(std::string v);
|
||||
_SrsContextId(const _SrsContextId& cp);
|
||||
_SrsContextId& operator=(const _SrsContextId& cp);
|
||||
virtual ~_SrsContextId();
|
||||
public:
|
||||
const char* c_str() const;
|
||||
bool empty() const;
|
||||
// Set the value of context id.
|
||||
_SrsContextId& set_value(const std::string& v);
|
||||
// Compare the two context id. @see http://www.cplusplus.com/reference/string/string/compare/
|
||||
// 0 They compare equal
|
||||
// <0 Either the value of the first character that does not match is lower in the compared string, or all compared characters match but the compared string is shorter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue