operations.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 // Data
7 # include "ConnectionManager.h"
8 
10 {
11 
12  namespace constantes
13  {
14  const std::string FOREIGN_KEY = "foreign_key";
15  const std::string ID = "id";
16  const std::string TIMESTAMP = "timestamp";
17  const std::string INSTANCES = "instances";
18  }
19 
20  namespace util
21  {
22  void load(const mongocxx::database& db, armem::wm::Memory& memory);
23  void load(const mongocxx::database& db, armem::wm::CoreSegment& memory);
24  void load(const mongocxx::database& db, armem::wm::ProviderSegment& memory);
25  void load(const mongocxx::database& db, armem::wm::Entity& memory);
26 
27  void convert(const mongocxx::database& db, armem::wm::Memory& memory);
28  void convert(const mongocxx::database& db, armem::wm::CoreSegment& memory);
29  void convert(const mongocxx::database& db, armem::wm::ProviderSegment& memory);
30  void convert(const mongocxx::database& db, armem::wm::Entity& memory);
31 
32  void store(const mongocxx::database& db, const armem::wm::Memory& memory);
33  void store(const mongocxx::database& db, const armem::wm::CoreSegment& memory);
34  void store(const mongocxx::database& db, const armem::wm::ProviderSegment& memory);
35  void store(const mongocxx::database& db, const armem::wm::Entity& memory);
36  }
37 
38 } // namespace armarx::armem::server::ltm::mongodb
armarx::armem::wm::ProviderSegment
Client-side working memory provider segment.
Definition: memory_definitions.h:105
armarx::armem::server::ltm::mongodb::constantes::FOREIGN_KEY
const std::string FOREIGN_KEY
Definition: operations.h:14
armarx::armem::server::ltm::mongodb::util::convert
void convert(const mongocxx::database &db, armem::wm::Memory &m)
Definition: operations.cpp:166
forward_declarations.h
armarx::memory
Brief description of class memory.
Definition: memory.h:39
armarx::armem::server::ltm::mongodb
Definition: ConnectionManager.cpp:7
armarx::armem::server::ltm::mongodb::util::store
void store(const mongocxx::database &db, const armem::wm::Memory &m)
Definition: operations.cpp:237
armarx::armem::wm::CoreSegment
Client-side working memory core segment.
Definition: memory_definitions.h:119
armarx::armem::wm::Memory
Client-side working memory.
Definition: memory_definitions.h:133
armarx::armem::server::ltm::mongodb::constantes::TIMESTAMP
const std::string TIMESTAMP
Definition: operations.h:16
armarx::armem::server::ltm::mongodb::constantes::ID
const std::string ID
Definition: operations.h:15
forward_declarations.h
armarx::armem::wm::Entity
Client-side working memory entity.
Definition: memory_definitions.h:93
ConnectionManager.h
armarx::armem::server::ltm::mongodb::constantes::INSTANCES
const std::string INSTANCES
Definition: operations.h:17
armarx::armem::server::ltm::mongodb::util::load
void load(const mongocxx::database &db, armem::wm::Memory &m)
Definition: operations.cpp:40