Agora  1.2.0
Agora project
config.cc File Reference

Implementation file for the configuration class which importants json configuration values into class variables. More...

#include "config.h"
#include <ctime>
#include <filesystem>
#include <utility>
#include "comms-lib.h"
#include "gettime.h"
#include "logger.h"
#include "message.h"
#include "modulation.h"
#include "scrambler.h"
#include "simd_types.h"
#include "utils_ldpc.h"
Include dependency graph for config.cc:

Typedefs

using json = nlohmann::json
 

Functions

 __attribute__ ((visibility("default"))) Config *ConfigNew(char *filename)
 

Variables

static constexpr size_t kMacAlignmentBytes = 64u
 
static constexpr bool kDebugPrintConfiguration = false
 
static constexpr size_t kMaxSupportedZc = 256
 
static constexpr size_t kShortIdLen = 3
 
static const std::string kLogFilepath
 
static const std::string kExperimentFilepath
 
static const std::string kUlDataFilePrefix
 
static const std::string kDlDataFilePrefix
 
static const std::string kUlDataFreqPrefix = kExperimentFilepath + "ul_data_f_"
 

Detailed Description

Implementation file for the configuration class which importants json configuration values into class variables.

Typedef Documentation

◆ json

Function Documentation

◆ __attribute__()

__attribute__ ( (visibility("default"))  )

Variable Documentation

◆ kDebugPrintConfiguration

constexpr bool kDebugPrintConfiguration = false
staticconstexpr

◆ kDlDataFilePrefix

const std::string kDlDataFilePrefix
static
Initial value:
=
kExperimentFilepath + "LDPC_orig_dl_data_"

◆ kExperimentFilepath

const std::string kExperimentFilepath
static
Initial value:
=
"PROJECT_DIRECTORY" "/files/experiment/"

◆ kLogFilepath

const std::string kLogFilepath
static
Initial value:
=
"PROJECT_DIRECTORY" "/files/log/"

◆ kMacAlignmentBytes

constexpr size_t kMacAlignmentBytes = 64u
staticconstexpr

◆ kMaxSupportedZc

constexpr size_t kMaxSupportedZc = 256
staticconstexpr

◆ kShortIdLen

constexpr size_t kShortIdLen = 3
staticconstexpr

◆ kUlDataFilePrefix

const std::string kUlDataFilePrefix
static
Initial value:
=
kExperimentFilepath + "LDPC_orig_ul_data_"

◆ kUlDataFreqPrefix

const std::string kUlDataFreqPrefix = kExperimentFilepath + "ul_data_f_"
static
kExperimentFilepath
static const std::string kExperimentFilepath
Definition: config.cc:34