An object representing one or more asynchronous I/O requests to a repository.
More...
|
| virtual | ~BatchRequest ()=default |
| |
| template<typename T > |
| void | CreateDataPoint (const DataPointPath &path, const T &initial_value, std::optional< std::reference_wrapper< const MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) |
| | Add a request to create a new datapoint.
|
| |
| template<typename T > |
| void | CreateDataPoint (const DataPointPath &path, const T &&initial_value, std::optional< std::reference_wrapper< const MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr)=delete |
| | Creation of datapoints from an rvalue reference is not allowed.
|
| |
| void | DeleteDataPoint (const DataPointPath &path, const CallbackType &callback=nullptr) |
| |
| void | DataPointExists (const DataPointPath &path, bool &result, const CallbackType &callback=nullptr) const |
| |
| void | GetChildren (const DataPointPath &path, std::pair< PathList, PathList > &result, bool recurse=false, const CallbackType &callback=nullptr) const |
| | Add request to query the child datapoints and paths for a given parent path.
|
| |
| void | GetChildren (const DataPointPath &path, std::pair< PathList, PathList > &&result, bool recurse=false, const CallbackType &callback=nullptr) const =delete |
| | Querying children with an rvalue reference for the result is not allowed.
|
| |
| template<typename T > |
| void | ReadDataPoint (const DataPointPath &path, T &buffer, std::optional< std::reference_wrapper< MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) const |
| |
| template<typename T > |
| void | ReadDataPoint (const DataPointPath &path, T &&buffer, std::optional< std::reference_wrapper< MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) const =delete |
| | Reading from a datapoint into an rvalue reference is not allowed.
|
| |
| template<typename T > |
| void | WriteDataPoint (const DataPointPath &path, const T &buffer, std::optional< std::reference_wrapper< const MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) |
| |
| template<typename T > |
| void | WriteDataPoint (const DataPointPath &path, const T &&buffer, std::optional< std::reference_wrapper< const MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr)=delete |
| | Writing to a datapoint from an rvalue reference is not allowed.
|
| |
| template<typename T > |
| void | PartialReadDataPoint (const DataPointPath &path, T &buffer, size_t first, size_t last, size_t d_first, std::optional< std::reference_wrapper< MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) const |
| | Add request to partially read a datapoint.
|
| |
| template<typename T > |
| void | PartialReadDataPoint (const DataPointPath &path, T &&buffer, size_t first, size_t last, size_t d_first, std::optional< std::reference_wrapper< MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) const =delete |
| | Reading from a datapoint into an rvalue reference is not allowed.
|
| |
| template<typename T > |
| void | PartialWriteDataPoint (const DataPointPath &path, const T &buffer, size_t first, size_t last, size_t d_first, std::optional< std::reference_wrapper< const MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) |
| |
| template<typename T > |
| void | PartialWriteDataPoint (const DataPointPath &path, const T &&buffer, size_t first, size_t last, size_t d_first, std::optional< std::reference_wrapper< const MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr)=delete |
| | Writing to a datapoint from an rvalue reference is not allowed.
|
| |
| void | ReadMetaData (const DataPointPath &path, MetaData &metadata, const CallbackType &callback=nullptr) const |
| |
| void | ReadMetaData (const DataPointPath &path, MetaData &&metadata, const CallbackType &callback=nullptr) const =delete |
| | Reading metadata into an rvalue reference is not allowed.
|
| |
| void | WriteMetaData (const DataPointPath &path, const MetaData &metadata, const CallbackType &callback=nullptr) |
| |
| void | CreateSymlink (const DataPointPath &dp, const DataPointPath &link, const CallbackType &callback=nullptr) |
| |
| void | UpdateSymlink (const DataPointPath &dp, const DataPointPath &link, const CallbackType &callback=nullptr) |
| |
An object representing one or more asynchronous I/O requests to a repository.
- Thread Safety
- thread-compatible
Add request to query the child datapoints and paths for a given parent path.
This method will add an asynchronous request to the batch request to query all the available datapoints that are leaf nodes immediately below the given path and also the non-leaf child paths, i.e. sub-folders when interpreting the repository as a hierarchical folder like structure.
The set of datapoint and child paths is returned by filling the path lists in result. If recurse is false then only the immediate children are returned. Otherwise all datapoint and child sub-folder paths are returned recursively in result.
- Parameters
-
| [in] | path | The path in which to search for datapoints and child paths. |
| [out] | result | A std::pair of path lists. The first list in the pair will be filled with the datapoints found and the second list will be filled with the child paths found. If no datapoints are found then the list for datapoints will be empty. Similarly if not child paths are found then the child path list will be empty. |
| [in] | recurse | Optional flag indicating if paths should be queried recursively. |
| [in] | callback | Optional callback that will be invoked on completion of the request. |
- Asynchronous Exceptions
- The following exceptions are not immediately thrown by this method. They are possibly thrown later by:
when completing the repository request.
- Thread Safety
- thread-compatible
- Exception Safety
- strong