refactor: move impl into .cpp + fix include paths
This commit is contained in:
parent
9a23b29c12
commit
38b8f34b28
9 changed files with 123 additions and 50 deletions
28
src/webutil/StreamEndpointDescr.cpp
Normal file
28
src/webutil/StreamEndpointDescr.cpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* @file StreamEndpointDescr.cpp */
|
||||
|
||||
#include "StreamEndpointDescr.hpp"
|
||||
#include "xo/indentlog/print/tag.hpp"
|
||||
#include "xo/indentlog/print/tostr.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace web {
|
||||
StreamEndpointDescr::StreamEndpointDescr(std::string uri_pattern,
|
||||
StreamSubscribeFn subscribe_fn,
|
||||
StreamUnsubscribeFn unsubscribe_fn)
|
||||
: uri_pattern_{std::move(uri_pattern)},
|
||||
subscribe_fn_{std::move(subscribe_fn)},
|
||||
unsubscribe_fn_{std::move(unsubscribe_fn)}
|
||||
{}
|
||||
|
||||
void
|
||||
StreamEndpointDescr::display(std::ostream & os) const {
|
||||
os << "<StreamEndpointDescr" << xtag("uri_pattern", uri_pattern_) << ">";
|
||||
} /*display*/
|
||||
|
||||
std::string
|
||||
StreamEndpointDescr::display_string() const { return tostr(*this); }
|
||||
} /*namespace web*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
||||
/* end StreamEndpointDescr.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue