7 #include "Arp/System/Rsc/Services/Rsc.h" 8 #include "Arp/System/Commons/Exceptions/Exceptions.h" 11 namespace Arp {
namespace System {
namespace Rsc {
namespace Services
49 operator String(
void)
const;
56 const char*
CStr(
void)
const;
85 if(strlen(pChars) >= N)
89 strncpy(this->buffer, pChars, N);
99 strncpy(this->buffer, arg.
CStr(), N);
105 return String(this->buffer);
123 return String(this->buffer);
127 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
size_type Size() const
Returns the number of char elements in this string.
Definition: BasicString.hxx:1074
const char * CStr(void) const
Returns pointer to internal buffer.
Definition: RscString.hxx:109
String with undefined format. Deprecated with remoting version 4 used by Rsc.
RscString & operator=(const RscString &arg)=default
Assignment operator.
RscString(void)
Constructs an RscString instance with an emtpy string.
Definition: RscString.hxx:77
const CharType * CStr() const
Gets the character data of this string.
Definition: BasicString.hxx:1507
~RscString(void)=default
Destructs this instance and frees all resources.
String ToString(void) const
Converts to new instance of Arp::String
Definition: RscString.hxx:121
Root namespace for the PLCnext API
System components used by the System, Device, Plc or Io domains.
Contains a static string with string lentgh up to N characters. The string has to be null terminated...
Definition: RscString.hxx:18