RTC Toolkit  1.0.0
Functions
rtctk::componentFramework::test Namespace Reference

Functions

std::shared_ptr< elt::oldb::CiiOldb > CreateInMemoryOldb ()
 This function prepares an in-memory OLDB that is suitable for unit testing. More...
 
void RegisterMetadataTypes (MetadataGroups flags)
 Registers the standard OLDB metadata values for various types. More...
 
void DeleteAllConfigDataPoints (const std::string &target_config_storage)
 Deletes all configuration datapoints in the CII configuration service. More...
 

Function Documentation

◆ CreateInMemoryOldb()

std::shared_ptr<elt::oldb::CiiOldb> rtctk::componentFramework::test::CreateInMemoryOldb ( )

This function prepares an in-memory OLDB that is suitable for unit testing.

The in-memory OLDB is a fake, but should reproduce most OLDB behaviour as expected by the OldbAdapter and RuntimeRepoAdapter.

◆ DeleteAllConfigDataPoints()

void rtctk::componentFramework::test::DeleteAllConfigDataPoints ( const std::string &  target_config_storage)

Deletes all configuration datapoints in the CII configuration service.

The function will recursively go through the entire configuration datapoint hierarchy in the CII configuration service and deletes all datapoints.

Parameters
[in]target_config_storageThe target configuration to clear. By default this is the in-memory "cache" storage.

◆ RegisterMetadataTypes()

void rtctk::componentFramework::test::RegisterMetadataTypes ( MetadataGroups  flags)

Registers the standard OLDB metadata values for various types.

Parameters
[in]flagsA bitwise concatenation of available metadata type groups that should be registered.