forked from eclipse-iceoryx/iceoryx2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eclipse-iceoryx#264] Implement API stubs for service factory
- Loading branch information
Showing
15 changed files
with
533 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
// | ||
// See the NOTICE file(s) distributed with this work for additional | ||
// information regarding copyright ownership. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Apache Software License 2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license | ||
// which is available at https://opensource.org/licenses/MIT. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#ifndef IOX2_ATTRIBUTE_HPP_ | ||
#define IOX2_ATTRIBUTE_HPP_ | ||
|
||
#include <string> | ||
|
||
namespace iox2 { | ||
class Attribute { | ||
public: | ||
const std::string& key() const {} | ||
const std::string& value() const {} | ||
}; | ||
} // namespace iox2 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
// | ||
// See the NOTICE file(s) distributed with this work for additional | ||
// information regarding copyright ownership. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Apache Software License 2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license | ||
// which is available at https://opensource.org/licenses/MIT. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#ifndef IOX2_ATTRIBUTE_SET_HPP_ | ||
#define IOX2_ATTRIBUTE_SET_HPP_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace iox2 { | ||
class AttributeSet { | ||
public: | ||
std::vector<std::string> get(const std::string& key) const {} | ||
}; | ||
} // namespace iox2 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
// | ||
// See the NOTICE file(s) distributed with this work for additional | ||
// information regarding copyright ownership. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Apache Software License 2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license | ||
// which is available at https://opensource.org/licenses/MIT. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#ifndef IOX2_ATTRIBUTE_SPECIFIER_HPP_ | ||
#define IOX2_ATTRIBUTE_SPECIFIER_HPP_ | ||
|
||
#include <string> | ||
|
||
#include "attribute_set.hpp" | ||
|
||
namespace iox2 { | ||
class AttributeSpecifier { | ||
public: | ||
AttributeSpecifier() = default; | ||
AttributeSpecifier& define(const std::string& key, | ||
const std::string& value) {} | ||
AttributeSet& attributes() const {} | ||
}; | ||
} // namespace iox2 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
// | ||
// See the NOTICE file(s) distributed with this work for additional | ||
// information regarding copyright ownership. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Apache Software License 2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license | ||
// which is available at https://opensource.org/licenses/MIT. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#ifndef IOX2_ATTRIBUTE_VERIFIER_HPP_ | ||
#define IOX2_ATTRIBUTE_VERIFIER_HPP_ | ||
|
||
#include <iox/expected.hpp> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "attribute_set.hpp" | ||
|
||
namespace iox2 { | ||
class AttributeVerifier { | ||
public: | ||
AttributeVerifier() = default; | ||
AttributeVerifier& require(const std::string& key, | ||
const std::string& value) {} | ||
AttributeVerifier& require_key(const std::string& key) {} | ||
const AttributeSet& attributes() const {} | ||
std::vector<std::string> keys() const {} | ||
|
||
iox::expected<void, std::string> verify_requirements( | ||
const AttributeSet& rhs) const {} | ||
}; | ||
} // namespace iox2 | ||
|
||
#endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
// | ||
// See the NOTICE file(s) distributed with this work for additional | ||
// information regarding copyright ownership. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Apache Software License 2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license | ||
// which is available at https://opensource.org/licenses/MIT. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#ifndef IOX2_PORTFACTORY_EVENT_HPP_ | ||
#define IOX2_PORTFACTORY_EVENT_HPP_ | ||
|
||
#include "service_type.hpp" | ||
|
||
namespace iox2 { | ||
template <ServiceType> | ||
class PortFactoryEvent {}; | ||
} // namespace iox2 | ||
|
||
#endif |
22 changes: 22 additions & 0 deletions
22
iceoryx2-ffi/cxx/include/iox2/port_factory_publish_subscribe.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
// | ||
// See the NOTICE file(s) distributed with this work for additional | ||
// information regarding copyright ownership. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Apache Software License 2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license | ||
// which is available at https://opensource.org/licenses/MIT. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#ifndef IOX2_PORTFACTORY_PUBLISH_SUBSCRIBE_HPP_ | ||
#define IOX2_PORTFACTORY_PUBLISH_SUBSCRIBE_HPP_ | ||
|
||
#include "service_type.hpp" | ||
|
||
namespace iox2 { | ||
template <ServiceType, typename Payload, typename UserHeader> | ||
class PortFactoryPublishSubscribe {}; | ||
} // namespace iox2 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
// | ||
// See the NOTICE file(s) distributed with this work for additional | ||
// information regarding copyright ownership. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Apache Software License 2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license | ||
// which is available at https://opensource.org/licenses/MIT. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#ifndef IOX2_SERVICE_BUILDER_HPP_ | ||
#define IOX2_SERVICE_BUILDER_HPP_ | ||
|
||
#include "service_builder_event.hpp" | ||
#include "service_builder_publish_subscribe.hpp" | ||
#include "service_type.hpp" | ||
|
||
namespace iox2 { | ||
|
||
template <ServiceType S> | ||
class ServiceBuilder { | ||
public: | ||
template <typename Payload> | ||
ServiceBuilderPublishSubscribe<Payload, void, S> publish_subscribe() {} | ||
|
||
ServiceBuilderEvent<S> event() {} | ||
}; | ||
|
||
} // namespace iox2 | ||
#endif |
Oops, something went wrong.