Top100
Your Personal Movie List (C++17 CLI + library)
Loading...
Searching...
No Matches
config_utils.h
1
// SPDX-License-Identifier: Apache-2.0
2
//-------------------------------------------------------------------------------
3
// Top100 — Your Personal Movie List
4
//
5
// File: lib/config_utils.h
6
// Purpose: Declarations for configuration utility functions.
7
// Language: C++17 (header)
8
//
9
// Author: Andy McCall, mailme@andymccall.co.uk
10
// Date: September 18, 2025
11
//-------------------------------------------------------------------------------
12
#pragma once
13
#include "config.h"
14
#include <functional>
15
#include <string>
16
26
bool
configureOmdb
(
AppConfig
& cfg,
const
std::string& key,
27
const
std::function<
bool
(
const
std::string&)>& verify);
28
36
bool
setDataFile(
AppConfig
& cfg,
const
std::string& newPath);
37
42
void
disableOmdb(
AppConfig
& cfg);
configureOmdb
bool configureOmdb(AppConfig &cfg, const std::string &key, const std::function< bool(const std::string &)> &verify)
Configure OMDb credentials in the active config.
Definition
config_utils.cpp:15
AppConfig
Persistent application configuration stored in a single JSON file.
Definition
config.h:39
lib
config_utils.h
Generated by
1.9.8