diff options
| author | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-21 21:14:30 +0300 |
|---|---|---|
| committer | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-21 21:14:30 +0300 |
| commit | ee8a1573204f76b16b9fb711608447aabee55696 (patch) | |
| tree | 50bbcf182716ee0b5b2e5c1ecf104f7143d0bbfe /src/specgram.cpp | |
| parent | a7c430fa81c9e22dbce74869a0a27304da78855b (diff) | |
Added header file comments for classes and methods.
Renamed all factory methods to ::Build().
Diffstat (limited to 'src/specgram.cpp')
| -rw-r--r-- | src/specgram.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/specgram.cpp b/src/specgram.cpp index 4b37cd5..6d84135 100644 --- a/src/specgram.cpp +++ b/src/specgram.cpp @@ -138,7 +138,7 @@ int main(int argc, char** argv) { /* parse command line arguments into global settings */ - auto [conf, conf_rc, conf_must_exit] = Configuration::FromArgs(argc, argv); + auto [conf, conf_rc, conf_must_exit] = Configuration::Build(argc, argv); if (conf_must_exit) { return conf_rc; } @@ -147,7 +147,7 @@ main(int argc, char** argv) bool have_output = conf.GetOutputFilename().has_value() || conf.MustDumpToStdout(); /* create window function */ - auto win_function = WindowFunction::FromType(conf.GetWindowFunction(), conf.GetFFTWidth()); + auto win_function = WindowFunction::Build(conf.GetWindowFunction(), conf.GetFFTWidth()); /* create FFT */ INFO("Creating " << conf.GetFFTWidth() << "-wide FFTW plan"); @@ -163,9 +163,8 @@ main(int argc, char** argv) conf.GetScaleUnit()); /* create color map */ - auto color_map = ColorMap::FromType(conf.GetColorMap(), - conf.GetBackgroundColor(), - conf.GetColorMapCustomColor()); + auto color_map = ColorMap::Build(conf.GetColorMap(), conf.GetBackgroundColor(), + conf.GetColorMapCustomColor()); /* create live window */ std::unique_ptr<LiveOutput> live = nullptr; @@ -175,7 +174,7 @@ main(int argc, char** argv) } /* create input parser */ - auto input = InputParser::FromDataType(conf.GetDataType(), conf.GetPrescaleFactor(), conf.HasComplexInput()); + auto input = InputParser::Build(conf.GetDataType(), conf.GetPrescaleFactor(), conf.HasComplexInput()); if (input == nullptr) { return 1; } |
