@@ -29,7 +29,7 @@ inline bool isValidPathEntry(const iox::string<StringCapacity>& name,
2929
3030 if ((name == currentDirectory) || (name == parentDirectory))
3131 {
32- return relativePathComponents == RelativePathComponents::ACCEPT ;
32+ return relativePathComponents == RelativePathComponents::Accept ;
3333 }
3434
3535 const auto nameSize = name.size ();
@@ -75,7 +75,7 @@ inline bool isValidFileName(const iox::string<StringCapacity>& name) noexcept
7575 }
7676
7777 // check if the file contains only valid characters
78- return isValidPathEntry (name, RelativePathComponents::REJECT );
78+ return isValidPathEntry (name, RelativePathComponents::Reject );
7979}
8080
8181template <uint64_t StringCapacity>
@@ -160,7 +160,7 @@ inline bool isValidPathToDirectory(const iox::string<StringCapacity>& name) noex
160160 }
161161 else // we reached the last entry, if its a valid file name the path is valid
162162 {
163- return isValidPathEntry (remaining, RelativePathComponents::ACCEPT );
163+ return isValidPathEntry (remaining, RelativePathComponents::Accept );
164164 }
165165 }
166166
@@ -191,32 +191,32 @@ inline constexpr const char* asStringLiteral(const OpenMode mode) noexcept
191191{
192192 switch (mode)
193193 {
194- case OpenMode::EXCLUSIVE_CREATE :
195- return " OpenMode::EXCLUSIVE_CREATE " ;
196- case OpenMode::PURGE_AND_CREATE :
197- return " OpenMode::PURGE_AND_CREATE " ;
198- case OpenMode::OPEN_OR_CREATE :
199- return " OpenMode::OPEN_OR_CREATE " ;
200- case OpenMode::OPEN_EXISTING :
201- return " OpenMode::OPEN_EXISTING " ;
194+ case OpenMode::ExclusiveCreate :
195+ return " OpenMode::ExclusiveCreate " ;
196+ case OpenMode::PurgeAndCreate :
197+ return " OpenMode::PurgeAndCreate " ;
198+ case OpenMode::OpenOrCreate :
199+ return " OpenMode::OpenOrCreate " ;
200+ case OpenMode::OpenExisting :
201+ return " OpenMode::OpenExisting " ;
202202 }
203203
204- return " OpenMode::UNDEFINED_VALUE " ;
204+ return " OpenMode::UndefinedValue " ;
205205}
206206
207207inline constexpr const char * asStringLiteral (const AccessMode mode) noexcept
208208{
209209 switch (mode)
210210 {
211- case AccessMode::READ_ONLY :
212- return " AccessMode::READ_ONLY " ;
213- case AccessMode::READ_WRITE :
214- return " AccessMode::READ_WRITE " ;
215- case AccessMode::WRITE_ONLY :
216- return " AccessMode::WRITE_ONLY " ;
211+ case AccessMode::ReadOnly :
212+ return " AccessMode::ReadOnly " ;
213+ case AccessMode::ReadWrite :
214+ return " AccessMode::ReadWrite " ;
215+ case AccessMode::WriteOnly :
216+ return " AccessMode::WriteOnly " ;
217217 }
218218
219- return " AccessMode::UNDEFINED_VALUE " ;
219+ return " AccessMode::UndefinedValue " ;
220220}
221221
222222
0 commit comments