Skip to content

Commit

Permalink
renamed get_name() to class_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-urban committed Nov 30, 2023
1 parent 65b055a commit c2c2a7a
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(
'cpp',
license: 'MPL-2.0',

version: '0.5.3',
version: '0.5.4',
default_options: ['warning_level=2', 'buildtype=release', 'cpp_std=c++20'],
meson_version: '>=1.1', #first version to support c++20 on macos
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//sourcehash: a3907f0346fe4886eee9a7143099524b1f764ea9ad0eef1986b9fd14290d7b8e
//sourcehash: 60040f377a947eae98fb9dfa7394c57b173d9cb09af909be0a3634d6639b3ed4

/*
This file contains docstrings for use in the Python bindings.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//sourcehash: 4c0411699d3b70ec0178e802b82a3e40b68bd5e59ecfbf9fd15fbe055ddefec3
//sourcehash: 65d1bdc76fa2a75f30bb6ddc51be082716de8fd3632ed021f84d285c7525cd9d

/*
This file contains docstrings for use in the Python bindings.
Expand Down Expand Up @@ -89,9 +89,9 @@ Parameter ``mp_cores``:
Returns:
datastructures::SampleDirectionsRange)doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_from_stream = R"doc()doc";
static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_class_name = R"doc()doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_get_name = R"doc()doc";
static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_from_stream = R"doc()doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_get_sensor_location = R"doc()doc";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ class BTConstantSVP : public I_Backtracer
static BTConstantSVP from_stream(std::istream& is)
{
auto data = BTConstantSVP(I_Backtracer::from_stream(is));
if (data.get_name() != "BTConstantSVP")
if (data.class_name() != "BTConstantSVP")
throw std::runtime_error(
fmt::format("BTConstantSVP::from_stream: wrong object name: {}", data.get_name()));
fmt::format("BTConstantSVP::from_stream: wrong object name: {}", data.class_name()));

return data;
}
Expand All @@ -159,7 +159,7 @@ class BTConstantSVP : public I_Backtracer
// __CLASSHELPER_DEFAULT_PRINTING_FUNCTIONS__ macro below)
tools::classhelper::ObjectPrinter __printer__(unsigned int float_precision) const
{
tools::classhelper::ObjectPrinter printer(this->get_name(), float_precision);
tools::classhelper::ObjectPrinter printer(this->class_name(), float_precision);

printer.register_section("Basics", '*');
printer.append(I_Backtracer::__printer__(float_precision));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class I_Backtracer
// datastructures::SampleDirectionsRange<1> _sample_directions;

public:
std::string get_name() const { return _name; }
std::string class_name() const { return _name; }

public:
I_Backtracer(navigation::datastructures::GeoLocation sensor_location,
Expand Down Expand Up @@ -218,7 +218,7 @@ class I_Backtracer
// __CLASSHELPER_DEFAULT_PRINTING_FUNCTIONS__ macro below)
tools::classhelper::ObjectPrinter __printer__(unsigned int float_precision) const
{
tools::classhelper::ObjectPrinter printer(this->get_name(), float_precision);
tools::classhelper::ObjectPrinter printer(this->class_name(), float_precision);

printer.register_section("Sensor location", '*');
printer.append(_sensor_location.__printer__(float_precision));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//sourcehash: c15f321f671082e189cdc029da1391922e6c1de15d560ea2d5d2a922153fea7c
//sourcehash: 2510518060cbfbd1a45840edb83fd45ad4fd9f573aa68f28245b606fcd2f9ab2

/*
This file contains docstrings for use in the Python bindings.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//sourcehash: 1090eb3b1f5a67e00e0b0ddeca7802448ae7823fdf874fb54d4d5f13cfcf1131
//sourcehash: b868285f904fe1cc76c1de9814817f97776f9b130b4673898433c8667f279d7e

/*
This file contains docstrings for use in the Python bindings.
Expand Down Expand Up @@ -89,9 +89,9 @@ Parameter ``mp_cores``:
Returns:
datastructures::SampleDirectionsRange)doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_from_stream = R"doc()doc";
static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_class_name = R"doc()doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_get_name = R"doc()doc";
static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_from_stream = R"doc()doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_backtracers_I_Backtracer_get_sensor_location = R"doc()doc";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ class BTConstantSVP : public I_Backtracer
static BTConstantSVP from_stream(std::istream& is)
{
auto data = BTConstantSVP(I_Backtracer::from_stream(is));
if (data.get_name() != "BTConstantSVP")
if (data.class_name() != "BTConstantSVP")
throw std::runtime_error(
fmt::format("BTConstantSVP::from_stream: wrong object name: {}", data.get_name()));
fmt::format("BTConstantSVP::from_stream: wrong object name: {}", data.class_name()));

return data;
}
Expand All @@ -146,7 +146,7 @@ class BTConstantSVP : public I_Backtracer
// __CLASSHELPER_DEFAULT_PRINTING_FUNCTIONS__ macro below)
tools::classhelper::ObjectPrinter __printer__(unsigned int float_precision) const
{
tools::classhelper::ObjectPrinter printer(this->get_name(), float_precision);
tools::classhelper::ObjectPrinter printer(this->class_name(), float_precision);

printer.register_section("Basics", '*');
printer.append(I_Backtracer::__printer__(float_precision));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class I_Backtracer
///< of the sensor

public:
std::string get_name() const { return _name; }
std::string class_name() const { return _name; }

public:
I_Backtracer(navigation::datastructures::GeoLocation sensor_location,
Expand Down Expand Up @@ -158,7 +158,7 @@ class I_Backtracer
// __CLASSHELPER_DEFAULT_PRINTING_FUNCTIONS__ macro below)
tools::classhelper::ObjectPrinter __printer__(unsigned int float_precision) const
{
tools::classhelper::ObjectPrinter printer(this->get_name(), float_precision);
tools::classhelper::ObjectPrinter printer(this->class_name(), float_precision);

printer.register_section("Sensor location", '*');
printer.append(_sensor_location.__printer__(float_precision));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//sourcehash: 5144e0cbe762e8c399155b4e06af9d1dca5d880fc76407e5a07fa28b97b51ec3
//sourcehash: 10d7d0bd2ea263559d30c8c2499922e2c81ec0d61676e8d8b048eae15a6870f1

/*
This file contains docstrings for use in the Python bindings.
Expand Down Expand Up @@ -42,9 +42,9 @@ static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_raytrac

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_raytracers_I_Raytracer_I_Raytracer = R"doc()doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_raytracers_I_Raytracer_from_stream = R"doc()doc";
static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_raytracers_I_Raytracer_class_name = R"doc()doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_raytracers_I_Raytracer_get_name = R"doc()doc";
static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_raytracers_I_Raytracer_from_stream = R"doc()doc";

static const char *__doc_themachinethatgoesping_algorithms_geoprocessing_raytracers_I_Raytracer_get_sensor_location = R"doc()doc";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//sourcehash: 4a94e9d6eabab09aff81a7686e61b2ccdd135825ade91629c3ef5d49851ad198
//sourcehash: 95ce07f46fc6f8a9d48ffba9d00bb6ac48fa6ab4aef67cccb1033b1e31855e90

/*
This file contains docstrings for use in the Python bindings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class I_Raytracer
///< of the sensor

public:
std::string get_name() const { return _name; }
std::string class_name() const { return _name; }

public:
I_Raytracer(navigation::datastructures::GeoLocation sensor_location, std::string name)
Expand Down Expand Up @@ -261,7 +261,7 @@ class I_Raytracer
// __CLASSHELPER_DEFAULT_PRINTING_FUNCTIONS__ macro below)
tools::classhelper::ObjectPrinter __printer__(unsigned int float_precision) const
{
tools::classhelper::ObjectPrinter printer(this->get_name(), float_precision);
tools::classhelper::ObjectPrinter printer(this->class_name(), float_precision);

printer.register_section("Sensor location", '*');
printer.append(_sensor_location.__printer__(float_precision));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RTConstantSVP : public I_Raytracer
float alongtrack_angle,
float crosstrack_angle) const override
{
not_implemented("trace(SinglePoint)", get_name());
not_implemented("trace(SinglePoint)", class_name());

datastructures::RaytraceResult target;

Expand Down Expand Up @@ -308,9 +308,9 @@ class RTConstantSVP : public I_Raytracer
static RTConstantSVP from_stream(std::istream& is)
{
auto data = RTConstantSVP(I_Raytracer::from_stream(is));
if (data.get_name() != "RTConstantSVP")
if (data.class_name() != "RTConstantSVP")
throw std::runtime_error(
fmt::format("RTConstantSVP::from_stream: wrong object name: {}", data.get_name()));
fmt::format("RTConstantSVP::from_stream: wrong object name: {}", data.class_name()));

is.read(reinterpret_cast<char*>(&data._sound_velocity), sizeof(float));

Expand All @@ -328,7 +328,7 @@ class RTConstantSVP : public I_Raytracer
// __CLASSHELPER_DEFAULT_PRINTING_FUNCTIONS__ macro below)
tools::classhelper::ObjectPrinter __printer__(unsigned int float_precision) const
{
tools::classhelper::ObjectPrinter printer(this->get_name(), float_precision);
tools::classhelper::ObjectPrinter printer(this->class_name(), float_precision);

printer.register_section("Basics", '*');
printer.append(I_Raytracer::__printer__(float_precision));
Expand Down

0 comments on commit c2c2a7a

Please sign in to comment.