8 #include "Arp/System/Core/SecureString.h"
9 #include "Arp/System/Rsc/Services/Rsc.h"
10 #include "Arp/System/Commons/Exceptions/Exceptions.h"
13 namespace Arp {
namespace System {
namespace Rsc {
namespace Services
58 const char*
CStr(
void)
const;
87 if(strlen(pChars) >= N)
107 return String(this->buffer);
125 return String(this->buffer);
129 inline std::ostream& operator<<(std::ostream& os,
const RscString<N>& rhs)
static ArgumentException Create(const char *paramName, const T ¶mValue)
Creates an ArgumentException instance using a default message text.
Definition: ArgumentException.hpp:112
Contains a static string with string lentgh up to N characters. The string has to be null terminated.
Definition: RscString.hxx:21
RscString(const char *pChars)
Constructs an RscString instance and copies the null terminated c-string in internal buffer.
Definition: RscString.hxx:85
RscString & operator=(const RscString &arg)=default
Assignment operator.
RscString(void)
Constructs an RscString instance with an emtpy string.
Definition: RscString.hxx:79
~RscString(void)=default
Destructs this instance and frees all resources.
RscString(const String &arg)
Copy constructor.
Definition: RscString.hxx:95
char * CStr(void)
Returns pointer to internal buffer.
Definition: RscString.hxx:117
RscString(const RscString &arg)=default
Copy constructor.
const char * CStr(void) const
Returns pointer to internal buffer.
Definition: RscString.hxx:111
String ToString(void) const
Converts to new instance of Arp::String
Definition: RscString.hxx:123
const CharType * CStr() const
Gets the character data of this string.
Definition: BasicString.hxx:1508
size_type Length() const
Returns the number of char elements in this string.
Definition: BasicString.hxx:1039
size_type Size() const
Returns the number of char elements in this string.
Definition: BasicString.hxx:1051
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API
size_t SecureStrnlen(const char *str, size_t maxSize)
Warpper for strnlen_s
void SecureStrncpy(char *dest, size_t destMaxSize, const char *src, size_t count)
Wrapper for strncpy_s