@@ -26,7 +26,9 @@ namespace Svc {
2626 public FileDownlinkComponentBase
2727 {
2828
29- PRIVATE:
29+ friend class FileDownlinkTester ;
30+
31+ private:
3032
3133 // ----------------------------------------------------------------------
3234 // Types
@@ -35,6 +37,8 @@ namespace Svc {
3537 // ! The Mode class
3638 class Mode {
3739
40+ friend class FileDownlinkTester ;
41+
3842 public:
3943
4044 // ! The Mode type
@@ -74,12 +78,14 @@ namespace Svc {
7478 // ! Class representing an outgoing file
7579 class File {
7680
81+ friend class FileDownlinkTester ;
82+
7783 public:
7884
7985 // ! Constructor
8086 File () : m_size(0 ) { }
8187
82- PRIVATE :
88+ private :
8389
8490 // ! The source file name
8591 Fw::LogStringArg m_sourceName;
@@ -140,6 +146,8 @@ namespace Svc {
140146 // ! Class to record files sent
141147 class FilesSent {
142148
149+ friend class FileDownlinkTester ;
150+
143151 public:
144152
145153 // ! Construct a FilesSent object
@@ -156,7 +164,7 @@ namespace Svc {
156164 this ->m_fileDownlink ->tlmWrite_FilesSent (m_sent_file_count);
157165 }
158166
159- PRIVATE :
167+ private :
160168
161169 // ! The total number of file sent
162170 U32 m_sent_file_count;
@@ -169,6 +177,8 @@ namespace Svc {
169177 // ! Class to record packets sent
170178 class PacketsSent {
171179
180+ friend class FileDownlinkTester ;
181+
172182 public:
173183
174184 // ! Construct a PacketsSent object
@@ -185,7 +195,7 @@ namespace Svc {
185195 this ->m_fileDownlink ->tlmWrite_PacketsSent (m_sent_packet_count);
186196 }
187197
188- PRIVATE :
198+ private :
189199
190200 // ! The total number of downlinked packets
191201 U32 m_sent_packet_count;
@@ -198,6 +208,8 @@ namespace Svc {
198208 // ! Class to record warnings
199209 class Warnings {
200210
211+ friend class FileDownlinkTester ;
212+
201213 public:
202214
203215 // ! Construct a Warnings object
@@ -214,15 +226,15 @@ namespace Svc {
214226 // ! Issue a File Read Error warning
215227 void fileRead (const Os::File::Status status);
216228
217- PRIVATE :
229+ private :
218230
219231 // ! Record a warning
220232 void warning () {
221233 ++this ->m_warning_count ;
222234 this ->m_fileDownlink ->tlmWrite_Warnings (m_warning_count);
223235 }
224236
225- PRIVATE :
237+ private :
226238
227239 // ! The total number of warnings
228240 U32 m_warning_count;
@@ -287,7 +299,7 @@ namespace Svc {
287299 // !
288300 ~FileDownlink ();
289301
290- PRIVATE :
302+ private :
291303
292304 // ----------------------------------------------------------------------
293305 // Handler implementations for user-defined typed input ports
@@ -327,7 +339,7 @@ namespace Svc {
327339
328340
329341
330- PRIVATE :
342+ private :
331343
332344 // ----------------------------------------------------------------------
333345 // Command handler implementations
@@ -361,7 +373,7 @@ namespace Svc {
361373 );
362374
363375
364- PRIVATE :
376+ private :
365377
366378 // ----------------------------------------------------------------------
367379 // Private helper methods
@@ -397,7 +409,7 @@ namespace Svc {
397409 // Send response after completing file downlink
398410 void sendResponse (SendFileStatus resp);
399411
400- PRIVATE :
412+ private :
401413
402414 // ----------------------------------------------------------------------
403415 // Member variables
0 commit comments