Skip to content

Bring up parent constructors for child classes #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/sfe_lara_r6.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,44 @@
// Base LARA-R6 class
class SparkFun_ublox_LARA_R6 : public SparkFun_ublox_Cellular
{
// Bring up parent constructors
using SparkFun_ublox_Cellular::SparkFun_ublox_Cellular;
};

class SparkFun_ublox_LARA_R6001 : public SparkFun_ublox_LARA_R6, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_LARA_R6001>
{
// Bring up parent constructors
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
};

class SparkFun_ublox_LARA_R6001D : public SparkFun_ublox_LARA_R6
{
// Bring up parent constructors
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
};

class SparkFun_ublox_LARA_R6401 : public SparkFun_ublox_LARA_R6, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_LARA_R6401>
{
// Bring up parent constructors
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
};

class SparkFun_ublox_LARA_R6401D : public SparkFun_ublox_LARA_R6
{
// Bring up parent constructors
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
};

class SparkFun_ublox_LARA_R6801_00B : public SparkFun_ublox_LARA_R6, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_LARA_R6801_00B>
{
// Bring up parent constructors
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
};

class SparkFun_ublox_LARA_R6801D : public SparkFun_ublox_LARA_R6
{
// Bring up parent constructors
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
};

#endif
13 changes: 13 additions & 0 deletions src/sfe_sara_r5.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class SparkFun_ublox_SARA_R5 : public SparkFun_ublox_Cellular
public:
SparkFun_ublox_SARA_R5();

// Bring up parent constructors
using SparkFun_ublox_Cellular::SparkFun_ublox_Cellular;

UBX_CELL_error_t setUtimeMode(
UBX_CELL_utime_mode_t mode = UBX_CELL_UTIME_MODE_PPS,
UBX_CELL_utime_sensor_t sensor = UBX_CELL_UTIME_SENSOR_GNSS_LTE); // Time mode, source etc. (+UTIME)
Expand Down Expand Up @@ -52,22 +55,32 @@ class SparkFun_ublox_SARA_R5 : public SparkFun_ublox_Cellular

class SparkFun_ublox_SARA_R500S : public SparkFun_ublox_SARA_R5
{
// Bring up parent constructors
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
};

class SparkFun_ublox_SARA_R500S_01B : public SparkFun_ublox_SARA_R5
{
// Bring up parent constructors
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
};

class SparkFun_ublox_SARA_R500S_61B : public SparkFun_ublox_SARA_R5
{
// Bring up parent constructors
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
};

class SparkFun_ublox_SARA_R510M8S_61B : public SparkFun_ublox_SARA_R5
{
// Bring up parent constructors
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
};

class SparkFun_ublox_SARA_R510S : public SparkFun_ublox_SARA_R5
{
// Bring up parent constructors
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
};

#endif
2 changes: 2 additions & 0 deletions src/sfe_ublox_cellular_voice.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ template <typename T> class SparkFun_ublox_Cellular_Voice_Base

class SparkFun_ublox_Cellular_Voice : public SparkFun_ublox_Cellular, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_Cellular_Voice>
{
// Bring up parent constructors
using SparkFun_ublox_Cellular::SparkFun_ublox_Cellular;
};

#endif