RTC Toolkit  0.1.0-alpha
Functions
operations.cpp File Reference
#include <rtctk/componentFramework/serviceDiscovery.hpp>
#include "rtctk/componentFramework/fakeRuntimeRepoAdapter.hpp"
#include "rtctk/componentFramework/matrixBuffer.hpp"
#include "rtctk/componentFramework/dataPointPath.hpp"
#include "../../../componentFramework/services/common/src/fitsIoFunctions.hpp"
#include <string>
#include <exception>
#include <iostream>
#include <optional>
#include <boost/program_options.hpp>
#include <boost/optional.hpp>
#include "operations.hpp"

Functions

template<class T >
void print_vector (std::vector< T > vec, bool endline=true)
 
template<class T >
void print_matrix (MatrixBuffer< T > mat)
 
int GetData (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path)
 
int Delete (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path)
 
int DoList (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path)
 
int SetData (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path, std::string type, std::string value)
 
int DoRead (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path, const std::string &file)
 
int DoWrite (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path, std::string type, const std::string &file)
 
int GetDataWithServiceDiscovery (const elt::mal::Uri &endpoint, const DataPointPath &component_name, const DataPointPath &attribute)
 
std::unique_ptr< RepositoryIfGetRepository (std::string repo)
 
int GetType (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path)
 

Function Documentation

◆ Delete()

int Delete ( std::unique_ptr< RepositoryIf > &&  rtr,
const DataPointPath path 
)

◆ DoList()

int DoList ( std::unique_ptr< RepositoryIf > &&  rtr,
const DataPointPath path 
)

◆ DoRead()

int DoRead ( std::unique_ptr< RepositoryIf > &&  rtr,
const DataPointPath path,
const std::string &  file 
)

◆ DoWrite()

int DoWrite ( std::unique_ptr< RepositoryIf > &&  rtr,
const DataPointPath path,
std::string  type,
const std::string &  file 
)

◆ GetData()

int GetData ( std::unique_ptr< RepositoryIf > &&  rtr,
const DataPointPath path 
)

◆ GetDataWithServiceDiscovery()

int GetDataWithServiceDiscovery ( const elt::mal::Uri &  endpoint,
const DataPointPath component_name,
const DataPointPath attribute 
)

◆ GetRepository()

std::unique_ptr<RepositoryIf> GetRepository ( std::string  repo)

◆ GetType()

int GetType ( std::unique_ptr< RepositoryIf > &&  rtr,
const DataPointPath path 
)

◆ print_matrix()

template<class T >
void print_matrix ( MatrixBuffer< T >  mat)

◆ print_vector()

template<class T >
void print_vector ( std::vector< T >  vec,
bool  endline = true 
)

◆ SetData()

int SetData ( std::unique_ptr< RepositoryIf > &&  rtr,
const DataPointPath path,
std::string  type,
std::string  value 
)