Skip to content

Commit e728401

Browse files
committed
PRIVATE->private and PROTECTED->protected updates in multiple Svc subdirectories (#3446)
1 parent c947828 commit e728401

23 files changed

Lines changed: 65 additions & 42 deletions

File tree

Svc/ActiveLogger/ActiveLoggerImpl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ namespace Svc {
1818
public:
1919
ActiveLoggerImpl(const char* compName); //!< constructor
2020
virtual ~ActiveLoggerImpl(); //!< destructor
21-
PROTECTED:
22-
PRIVATE:
21+
protected:
22+
private:
2323
void LogRecv_handler(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity& severity, Fw::LogBuffer &args);
2424
void loqQueue_internalInterfaceHandler(FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity& severity, const Fw::LogBuffer &args);
2525

Svc/ActiveRateGroup/ActiveRateGroup.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ namespace Svc {
2929
//!
3030

3131
class ActiveRateGroup final : public ActiveRateGroupComponentBase {
32+
33+
friend class ActiveRateGroupImplTester;
34+
3235
public:
3336
static constexpr FwIndexType CONNECTION_COUNT_MAX = NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS;
3437

@@ -58,7 +61,7 @@ namespace Svc {
5861

5962
~ActiveRateGroup();
6063

61-
PRIVATE:
64+
private:
6265

6366
//! \brief Input cycle port handler
6467
//!

Svc/ActiveTextLogger/ActiveTextLogger.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ namespace Svc {
2323

2424
class ActiveTextLogger final : public ActiveTextLoggerComponentBase {
2525

26+
friend class ActiveTextLoggerTester;
27+
2628
public:
2729

2830
//! \brief Component constructor
@@ -52,7 +54,7 @@ namespace Svc {
5254
bool set_log_file(const char* fileName, const U32 maxSize, const U32 maxBackups = 10);
5355

5456

55-
PRIVATE:
57+
private:
5658

5759
// ----------------------------------------------------------------------
5860
// Prohibit Copying

Svc/BufferManager/BufferManagerComponentImpl.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ namespace Svc
5656
class BufferManagerComponentImpl final : public BufferManagerComponentBase
5757
{
5858

59+
friend class BufferManagerTester;
60+
5961
public:
6062

6163
// ----------------------------------------------------------------------
@@ -98,7 +100,7 @@ namespace Svc
98100
//!
99101
~BufferManagerComponentImpl();
100102

101-
PRIVATE :
103+
private :
102104

103105
// ----------------------------------------------------------------------
104106
// Handler implementations for user-defined typed input ports

Svc/ChronoTime/ChronoTime.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ChronoTime final : public ChronoTimeComponentBase {
2424
//! Destroy ChronoTime object
2525
~ChronoTime();
2626

27-
PRIVATE:
27+
private:
2828
// ----------------------------------------------------------------------
2929
// Handler implementations for user-defined typed input ports
3030
// ----------------------------------------------------------------------

Svc/CmdDispatcher/CommandDispatcherImpl.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ namespace Svc {
3030
//! as the port that submitted the command, the command status will be returned.
3131

3232
class CommandDispatcherImpl final : public CommandDispatcherComponentBase {
33+
34+
friend class CommandDispatcherImplTester;
35+
3336
public:
3437
//! \brief Command Dispatcher constructor
3538
//!
@@ -43,8 +46,8 @@ namespace Svc {
4346
//!
4447
//! The destructor for this component is empty
4548
virtual ~CommandDispatcherImpl();
46-
PROTECTED:
47-
PRIVATE:
49+
protected:
50+
private:
4851
//! \brief component command status handler
4952
//!
5053
//! The command status handler is called when a component

Svc/CmdSplitter/CmdSplitter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CmdSplitter final : public CmdSplitterComponentBase {
3131
//!
3232
void configure(const FwOpcodeType remoteBaseOpcode /*!< Base remote opcode*/);
3333

34-
PRIVATE:
34+
private:
3535

3636
// ----------------------------------------------------------------------
3737
// Handler implementations for user-defined typed input ports

Svc/ComQueue/ComQueue.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@ class ComQueue final : public ComQueueComponentBase {
187187
//! Send a chosen Fw::Buffer
188188
//!
189189
void sendBuffer(Fw::Buffer& buffer, //!< Reference to buffer to send
190-
FwIndexType queueIndex //!< Index of the queue emitting the message
190+
FwIndexType queueIndex //!< Index of the queue emitting the message
191191
);
192192

193193
//! Process the queues to select the next priority message
194194
//!
195195
void processQueue();
196196

197197

198-
PRIVATE:
198+
private:
199199
// ----------------------------------------------------------------------
200200
// Member variables
201201
// ----------------------------------------------------------------------

Svc/DpManager/DpManager.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class DpManager final : public DpManagerComponentBase {
5757
//! Destroy the DpManager
5858
~DpManager();
5959

60-
PRIVATE:
60+
private:
6161
// ----------------------------------------------------------------------
6262
// Handler implementations for user-defined typed input ports
6363
// ----------------------------------------------------------------------
@@ -86,7 +86,7 @@ class DpManager final : public DpManagerComponentBase {
8686
U32 context //!< The call order
8787
) final;
8888

89-
PRIVATE:
89+
private:
9090
// ----------------------------------------------------------------------
9191
// Handler implementations for commands
9292
// ----------------------------------------------------------------------
@@ -98,7 +98,7 @@ class DpManager final : public DpManagerComponentBase {
9898
U32 cmdSeq //!< The command sequence number
9999
) override;
100100

101-
PRIVATE:
101+
private:
102102
// ----------------------------------------------------------------------
103103
// Private helper functions
104104
// ----------------------------------------------------------------------
@@ -111,7 +111,7 @@ class DpManager final : public DpManagerComponentBase {
111111
Fw::Buffer& buffer //!< The buffer (output)
112112
);
113113

114-
PRIVATE:
114+
private:
115115
// ----------------------------------------------------------------------
116116
// Private member variables
117117
// ----------------------------------------------------------------------

Svc/DpWriter/DpWriter.hpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
namespace Svc {
1919

2020
class DpWriter final : public DpWriterComponentBase {
21+
22+
friend class DpWriterTester;
23+
2124
public:
2225
// ----------------------------------------------------------------------
2326
// Construction, initialization, and destruction
@@ -36,7 +39,7 @@ class DpWriter final : public DpWriterComponentBase {
3639
void configure(const Fw::StringBase& dpFileNamePrefix //!< The file name prefix for writing DP files
3740
);
3841

39-
PRIVATE:
42+
private:
4043
// ----------------------------------------------------------------------
4144
// Handler implementations for user-defined typed input ports
4245
// ----------------------------------------------------------------------
@@ -53,7 +56,7 @@ class DpWriter final : public DpWriterComponentBase {
5356
U32 context //!< The call order
5457
) final;
5558

56-
PRIVATE:
59+
private:
5760
// ----------------------------------------------------------------------
5861
// Handler implementations for commands
5962
// ----------------------------------------------------------------------
@@ -65,7 +68,7 @@ class DpWriter final : public DpWriterComponentBase {
6568
U32 cmdSeq //!< The command sequence number
6669
) final;
6770

68-
PRIVATE:
71+
private:
6972
// ----------------------------------------------------------------------
7073
// Private helper functions
7174
// ----------------------------------------------------------------------
@@ -93,7 +96,7 @@ class DpWriter final : public DpWriterComponentBase {
9396
FwSizeType packetSize //!< The packet size
9497
);
9598

96-
PRIVATE:
99+
private:
97100
// ----------------------------------------------------------------------
98101
// Private member variables
99102
// ----------------------------------------------------------------------

0 commit comments

Comments
 (0)