Exemplo n.º 1
0
void LibjoynrSettings::printSettings() const
{
    JOYNR_LOG_DEBUG(logger,
                    "SETTING: {}  = {}",
                    SETTING_PARTICIPANT_IDS_PERSISTENCE_FILENAME(),
                    settings.get<std::string>(SETTING_PARTICIPANT_IDS_PERSISTENCE_FILENAME()));
}
Exemplo n.º 2
0
void LibjoynrSettings::checkSettings() const
{
    // set default values
    if (!settings.contains(SETTING_PARTICIPANT_IDS_PERSISTENCE_FILENAME())) {
        settings.set(SETTING_PARTICIPANT_IDS_PERSISTENCE_FILENAME(),
                     DEFAULT_PARTICIPANT_IDS_PERSISTENCE_FILENAME());
    }
}
Exemplo n.º 3
0
void LibjoynrSettings::checkSettings()
{
    // set default values
    if (!settings.contains(SETTING_PARTICIPANT_IDS_PERSISTENCE_FILENAME())) {
        setParticipantIdsPersistenceFilename(DEFAULT_PARTICIPANT_IDS_PERSISTENCE_FILENAME());
    }

    if (!settings.contains(SETTING_MESSAGE_ROUTER_PERSISTENCE_FILENAME())) {
        setMessageRouterPersistenceFilename(DEFAULT_MESSAGE_ROUTER_PERSISTENCE_FILENAME());
    }

    if (!settings.contains(SETTING_LOCAL_CAPABILITIES_DIRECTORY_PERSISTENCE_FILENAME())) {
        setLocalCapabilitiesDirectoryPersistenceFilename(
                DEFAULT_LOCAL_CAPABILITIES_DIRECTORY_PERSISTENCE_FILENAME());
    }
}
Exemplo n.º 4
0
void LibjoynrSettings::setParticipantIdsPersistenceFilename(const std::string& filename)
{
    settings.set(SETTING_PARTICIPANT_IDS_PERSISTENCE_FILENAME(), filename);
}
Exemplo n.º 5
0
std::string LibjoynrSettings::getParticipantIdsPersistenceFilename() const
{
    return settings.get<std::string>(SETTING_PARTICIPANT_IDS_PERSISTENCE_FILENAME());
}