mirror of
https://github.com/ossrs/srs.git
synced 2025-02-24 15:04:20 +00:00
* Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8 * Update README.md * Update README.md * Refine format for AUTHORS.md
48 lines
683 B
C++
48 lines
683 B
C++
//
|
|
// Copyright (c) 2013-2021 The SRS Authors
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#include <srs_core.hpp>
|
|
|
|
_SrsContextId::_SrsContextId()
|
|
{
|
|
}
|
|
|
|
_SrsContextId::_SrsContextId(const _SrsContextId& cp)
|
|
{
|
|
v_ = cp.v_;
|
|
}
|
|
|
|
_SrsContextId& _SrsContextId::operator=(const _SrsContextId& cp)
|
|
{
|
|
v_ = cp.v_;
|
|
return *this;
|
|
}
|
|
|
|
_SrsContextId::~_SrsContextId()
|
|
{
|
|
}
|
|
|
|
const char* _SrsContextId::c_str() const
|
|
{
|
|
return v_.c_str();
|
|
}
|
|
|
|
bool _SrsContextId::empty() const
|
|
{
|
|
return v_.empty();
|
|
}
|
|
|
|
int _SrsContextId::compare(const _SrsContextId& to) const
|
|
{
|
|
return v_.compare(to.v_);
|
|
}
|
|
|
|
_SrsContextId& _SrsContextId::set_value(const std::string& v)
|
|
{
|
|
v_ = v;
|
|
return *this;
|
|
}
|
|
|