Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/docs #131

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
a48d169
temporary disable zenoh-pico
DenisBiryukov91 May 15, 2024
2659e12
api refactoring
DenisBiryukov91 May 23, 2024
408655f
some examples build
DenisBiryukov91 May 24, 2024
9d3c7a3
fixed more examples
DenisBiryukov91 May 28, 2024
fdb3ec4
fixed more examples;
DenisBiryukov91 May 29, 2024
fb5343d
all examples build
DenisBiryukov91 May 30, 2024
1386fc3
reworked several tests
DenisBiryukov91 May 30, 2024
2b987e4
add support for serialization/deserialization of arithmetic types;
DenisBiryukov91 May 31, 2024
bfe7abd
added pub_sub and queryable_get tests;
DenisBiryukov91 May 31, 2024
19a1f2d
updated branches in .txt
DenisBiryukov91 May 31, 2024
5a658b9
fixed designated initializers order for options
DenisBiryukov91 May 31, 2024
b88e8bc
add missing header
DenisBiryukov91 May 31, 2024
bbea76a
show failed test output in ci;
DenisBiryukov91 May 31, 2024
fd899e0
remove desgnated initializer;
DenisBiryukov91 May 31, 2024
cfbbd6b
remove designated initializers from bytes test
DenisBiryukov91 Jun 3, 2024
1c95de7
compatibility with zenoh-c ::z_keyexpr_as_view_string
DenisBiryukov91 Jun 3, 2024
e340067
Merge pull request #114 from DenisBiryukov91/protocol-changes/build_fix
milyin Jun 4, 2024
d1b74c9
wrap optional options arguments into std::optional
DenisBiryukov91 Jun 4, 2024
10b5ec1
docs update
DenisBiryukov91 Jun 4, 2024
d5f04ab
docs update
DenisBiryukov91 Jun 4, 2024
4da3316
include <optional> headers
DenisBiryukov91 Jun 4, 2024
517d42d
Merge pull request #117 from DenisBiryukov91/dev/stdoptional-in-options
milyin Jun 6, 2024
3b7484c
split api code across multiple headers
DenisBiryukov91 Jun 6, 2024
89eff26
added channels;
DenisBiryukov91 Jun 7, 2024
d8452b1
fixes for compatibility with dev/1.0.0 branch of zenoh-c
DenisBiryukov91 Jun 7, 2024
4264f46
added queryable with channels
DenisBiryukov91 Jun 7, 2024
1214871
added subscriber with channels
DenisBiryukov91 Jun 7, 2024
6b0f99d
docs update
DenisBiryukov91 Jun 7, 2024
dd92de0
docs update
DenisBiryukov91 Jun 10, 2024
ee8f807
Merge pull request #119 from DenisBiryukov91/dev/channels
milyin Jun 10, 2024
d41c976
added liveliness support
DenisBiryukov91 Jun 10, 2024
35c956a
Merge pull request #121 from DenisBiryukov91/dev/livleiness
milyin Jun 11, 2024
269f39b
support for zenoh-c PRs #422, #431, #435
DenisBiryukov91 Jun 11, 2024
53d749c
docs update
DenisBiryukov91 Jun 11, 2024
750dee8
replace dynamic casts with static ones
DenisBiryukov91 Jun 11, 2024
cac66ce
fix default ReplyDelOptions congestion control
DenisBiryukov91 Jun 11, 2024
f4515c7
compatibility with z_owned_reply_err
DenisBiryukov91 Jun 11, 2024
6f94142
add publisher_set* methods support
DenisBiryukov91 Jun 11, 2024
58e096b
Merge pull request #123 from DenisBiryukov91/dev/add_missing_features…
milyin Jun 12, 2024
fcdaf46
merge
DenisBiryukov91 Jun 12, 2024
1de4208
add support for more stl containers serialization/ deserialization
DenisBiryukov91 Jun 12, 2024
40e1636
fix Bytes Iterator to return std::optional <Bytes>;
DenisBiryukov91 Jun 12, 2024
f6aeab6
remove debug output
DenisBiryukov91 Jun 12, 2024
4eda6a0
merge
DenisBiryukov91 Jun 12, 2024
130d1e3
remove dynamic allocation for z_bytes_encode_from_iter closure
DenisBiryukov91 Jun 12, 2024
aa6ffad
remove publisher set methods
DenisBiryukov91 Jun 12, 2024
601830a
Merge pull request #125 from DenisBiryukov91/dev/remove_dynamic_casts
milyin Jun 12, 2024
95009b3
Merge branch 'dev/1.0.0' into dev/serde
DenisBiryukov91 Jun 12, 2024
cfd6ecd
Merge pull request #126 from DenisBiryukov91/dev/serde
milyin Jun 12, 2024
1eef335
Merge pull request #127 from DenisBiryukov91/dev/remove_publisher_set…
milyin Jun 12, 2024
93a1ccc
updated docs (except channels and examples)
DenisBiryukov91 Jun 17, 2024
1075e54
added docs for channels and examples
DenisBiryukov91 Jun 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
shell: bash
run: |
cd build
ctest
ctest --output-on-failure

- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = ../include/zenohcxx/base.hxx ../include/zenohcxx/api.hxx
INPUT = ../include/zenoh/api

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down Expand Up @@ -2353,7 +2353,7 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

PREDEFINED = __ZENOHCXX_ZENOHPICO __ZENOHCXX_ZENOHC __DOXYGEN__ z=zenoh
PREDEFINED = ZENOHCXX_ZENOHPICO ZENOHCXX_ZENOHC __DOXYGEN__

# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
Expand Down
16 changes: 6 additions & 10 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,13 @@ API Reference
.. toctree::
:maxdepth: 10

namespaces
templates
closure_templates
enums
generic
commons
error_handling
keyexpr
config
session
entities
data
closures
shm
options
scouting
publish_subscribe
query_reply
serialization_deserialization
channels
16 changes: 13 additions & 3 deletions docs/channels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,18 @@
Channels
========

The functions allowing to receive data in synchronous mode, without a callback
Classes providing stream interface for Zenoh messages.

.. doxygenfunction:: reply_fifo_new
.. doxygenclass:: zenoh::channels::FifoChannel
:members:

.. doxygenfunction:: reply_non_blocking_fifo_new
.. doxygenclass:: zenoh::channels::FifoHandler
:members:
:membergroups: Constructors Operators Methods

.. doxygenclass:: zenoh::channels::RingChannel
:members:

.. doxygenclass:: zenoh::channels::RingHandler
:members:
:membergroups: Constructors Operators Methods
80 changes: 0 additions & 80 deletions docs/closure_templates.rst

This file was deleted.

82 changes: 82 additions & 0 deletions docs/commons.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
..
.. Copyright (c) 2024 ZettaScale Technology
..
.. This program and the accompanying materials are made available under the
.. terms of the Eclipse Public License 2.0 which is available at
.. http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
.. which is available at https://www.apache.org/licenses/LICENSE-2.0.
..
.. SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
..
.. Contributors:
.. ZettaScale Zenoh Team, <zenoh@zettascale.tech>
..

Commonly used types
===================

Enums
-----

Enum types are C++ - style typedefs for corrresponding enums of `zenoh-c`_ / `zenoh-pico`_ C API.

.. doxygentypedef:: zenoh::SampleKind
.. doxygentypedef:: zenoh::ConsolidationMode

.. doxygentypedef:: zenoh::Reliability

.. doxygentypedef:: zenoh::CongestionControl

.. doxygentypedef:: zenoh::Priority

.. doxygentypedef:: zenoh::QueryTarget

.. doxygentypedef:: zenoh::WhatAmI

.. doxygentypedef:: zenoh::Locality

.. doxygenfunction:: whatami_as_str

.. _zenoh-c: https://zenoh-c.readthedocs.io
.. _zenoh-pico: https://zenoh-pico.readthedocs.io

Source Info
-----------

.. doxygenclass:: zenoh::Id
:members:
:membergroups: Constructors Operators Methods

.. doxygenfunction:: zenoh::operator<<(std::ostream &os, const Id &id)

.. doxygenclass:: zenoh::EntityGlobalId
:members:
:membergroups: Constructors Operators Methods

.. doxygenclass:: zenoh::SourceInfo
:members:
:membergroups: Constructors Operators Methods

Timestamp
---------
.. doxygenclass:: zenoh::Timestamp
:members:
:membergroups: Constructors Operators Methods


Encoding
--------
.. doxygenclass:: zenoh::Encoding
:members:
:membergroups: Constructors Operators Methods

Sample
------
.. doxygenclass:: zenoh::Sample
:members:
:membergroups: Constructors Operators Methods

Logging
-------

.. doxygenfunction:: init_logger
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
subprocess.call('doxygen', shell=True)
breathe_projects = {"zenohcpp": "xml"}

# -- Project information -----------------------------------------------------
project = 'zenoh-cpp'
Expand All @@ -36,4 +35,5 @@
extensions = [ "breathe" ]

breathe_default_project = "zenohcpp"
breathe_projects = {"zenohcpp": "xml"}
breathe_order_parameters_first = True
20 changes: 0 additions & 20 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,6 @@
Configuration
=============

The classes which defines network configuration parameters

Builder functions
-----------------

.. doxygenfunction:: zenoh::config_peer

.. doxygenfunction:: zenoh::config_from_file

.. doxygenfunction:: zenoh::config_client(const zenoh::StrArrayView& peers)

.. doxygenfunction:: zenoh::config_client(const std::initializer_list<const char*>& peers)

Configuration classes
---------------------

.. doxygenclass:: zenoh::Config
:members:
:membergroups: Constructors Operators Methods

.. doxygenclass:: zenoh::ScoutingConfig
:members:
:membergroups: Constructors Operators Methods
49 changes: 0 additions & 49 deletions docs/enums.rst

This file was deleted.

29 changes: 29 additions & 0 deletions docs/error_handling.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
..
.. Copyright (c) 2024 ZettaScale Technology
..
.. This program and the accompanying materials are made available under the
.. terms of the Eclipse Public License 2.0 which is available at
.. http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
.. which is available at https://www.apache.org/licenses/LICENSE-2.0.
..
.. SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
..
.. Contributors:
.. ZettaScale Zenoh Team, <zenoh@zettascale.tech>
..

Error Handling
==============

All failable Zenoh methods accept pointer to zenoh::ZError as an optional argument.
If it is not provided (or set to ``nullptr``) a ``zenoh::ZException`` will be thrown in case of failure.
Otherwise a error code will be written to provided pointer and no exception will be thrown from Zenoh side.
If corresponding method is expected to return or consume (via ``std::move``) any objects, they will be reset to
gravestone state (i.e. None of the functions or methods will work with the object in this state, except
explicit conversion to ``bool``, which will return false).

.. doxygenclass:: zenoh::ZException
:members:
:membergroups: Constructors Operators Methods

.. doxygentypedef:: zenoh::ZError
Loading
Loading