|
OXY-SYNC-CONTAINER 1.0
OXY-SYNC-CONTAINER Library Documentation
|
Interface for synchronization operations of container. More...
#include <services.hpp>
Public Member Functions | |
| virtual void | clone (context_t const &ctx, std::string const &packName) const =0 |
| Clone the specified pack. | |
| virtual void | fetch (context_t const &ctx, std::string const &packName, std::vector< std::string > const &items) const =0 |
| Fetch the specified items from the pack. | |
| virtual std::vector< std::string > | get_oids (context_t const &ctx) const =0 |
| Get the object IDs associated with the specified context. | |
| virtual std::map< std::string, std::string > | get_references (context_t const &ctx) const =0 |
| Get the references associated with the specified context. | |
| virtual void | open (const IConnectionPtr &conn)=0 |
| Open a connection using the specified IConnection pointer. | |
| virtual void | post (context_t const &ctx, std::string const &packName) const =0 |
| Post the specified pack. | |
| virtual maybe< std::string > | set_reference (context_t const &ctx, std::string const &refName, std::string const &latest, std::string const &earlier) const =0 |
| Set a reference with the specified name and values. | |
Interface for synchronization operations of container.
This abstract struct defines the interface for synchronization operations in the library. Implementations of this interface must provide methods to open connections, retrieve object IDs, manage references, and perform clone, fetch, and post operations.
|
pure virtual |
Clone the specified pack.
| ctx | The context for which to clone the pack. |
| packName | The name of the pack to clone. |
|
pure virtual |
Fetch the specified items from the pack.
| ctx | The context for which to fetch the items. |
| packName | The name of the pack from which to fetch items. |
| items | A vector of item names to fetch. |
|
pure virtual |
Get the object IDs associated with the specified context.
| ctx | The context for which to retrieve object IDs. |
|
pure virtual |
Get the references associated with the specified context.
| ctx | The context for which to retrieve references. |
|
pure virtual |
Open a connection using the specified IConnection pointer.
| conn | The IConnection pointer to use for the connection. |
|
pure virtual |
Post the specified pack.
| ctx | The context for which to post the pack. |
| packName | The name of the pack to post. |
|
pure virtual |
Set a reference with the specified name and values.
| ctx | The context for which to set the reference. |
| refName | The name of the reference to set. |
| latest | The latest value of the reference. |
| earlier | The earlier value of the reference. |