Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
c8a9dea4
Commit
c8a9dea4
authored
Dec 15, 2021
by
legoc
Browse files
Some renamings
parent
d46dab7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
cameo-api-cpp/include/PublisherSubscriber.h
View file @
c8a9dea4
...
...
@@ -118,8 +118,8 @@ public:
private:
Subscriber
();
void
init
(
application
::
Instance
&
instance
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
instance
Name
);
static
std
::
unique_ptr
<
Subscriber
>
createSubscriber
(
application
::
Instance
&
app
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
instance
Name
);
void
init
(
application
::
Instance
&
app
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
app
Name
);
static
std
::
unique_ptr
<
Subscriber
>
createSubscriber
(
application
::
Instance
&
app
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
app
Name
);
static
std
::
string
createConnectPublisherRequest
(
int
id
,
const
std
::
string
&
publisherName
);
std
::
string
m_publisherName
;
...
...
cameo-api-cpp/src/coms/PublisherSubscriber.cpp
View file @
c8a9dea4
...
...
@@ -132,7 +132,7 @@ Subscriber::Subscriber() {
Subscriber
::~
Subscriber
()
{
}
void
Subscriber
::
init
(
application
::
Instance
&
app
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
instance
Name
)
{
void
Subscriber
::
init
(
application
::
Instance
&
app
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
app
Name
)
{
m_publisherName
=
publisherName
;
m_appName
=
app
.
getName
();
...
...
@@ -153,10 +153,10 @@ void Subscriber::init(application::Instance & app, const std::string& publisherN
m_impl
->
init
(
m_appId
,
m_appEndpoint
,
app
.
getStatusEndpoint
(),
publisherPort
,
synchronizerPort
,
numberOfSubscribers
);
}
std
::
unique_ptr
<
Subscriber
>
Subscriber
::
createSubscriber
(
application
::
Instance
&
app
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
instance
Name
)
{
std
::
unique_ptr
<
Subscriber
>
Subscriber
::
createSubscriber
(
application
::
Instance
&
app
,
const
std
::
string
&
publisherName
,
const
std
::
string
&
app
Name
)
{
std
::
unique_ptr
<
Subscriber
>
subscriber
=
std
::
unique_ptr
<
Subscriber
>
(
new
Subscriber
());
subscriber
->
init
(
app
,
publisherName
,
instance
Name
);
subscriber
->
init
(
app
,
publisherName
,
app
Name
);
return
subscriber
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment