Add Source class

This commit is contained in:
Naoto Kondo
2020-04-24 10:55:17 +09:00
parent 7b83a88804
commit b0e2f8f97b
3 changed files with 48 additions and 5 deletions

24
src/PySource.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "PySource.hpp"
PySource::PySource(const std::string &ndi_name_,
const std::string &url_address_)
: _ndi_name(ndi_name_), _url_address(url_address_) {
p_ndi_name = _ndi_name.c_str();
p_url_address = _url_address.c_str();
}
PySource::~PySource() {}
const std::string &PySource::getNdiName() const { return _ndi_name; }
void PySource::setNdiName(const std::string &name) {
_ndi_name = name;
p_ndi_name = _ndi_name.c_str();
}
const std::string &PySource::getUrlAddress() const { return _url_address; }
void PySource::setUrlAddress(const std::string &address) {
_url_address = address;
p_url_address = _url_address.c_str();
}