PLCnext API Documentation  22.9.0.33
Public Member Functions | List of all members
Arp::System::Rsc::Services::RscString< N > Class Template Reference

Contains a static string with string lentgh up to N characters. The string has to be null terminated. More...

#include <RscString.hxx>

Inheritance diagram for Arp::System::Rsc::Services::RscString< N >:
Inheritance graph

Public Member Functions

 RscString (void)
 Constructs an RscString instance with an emtpy string. More...
 
 RscString (const char *pChars)
 Constructs an RscString instance and copies the null terminated c-string in internal buffer. More...
 
 RscString (const String &arg)
 Copy constructor. More...
 
 RscString (const RscString &arg)=default
 Copy constructor. More...
 
RscStringoperator= (const RscString &arg)=default
 Assignment operator. More...
 
 ~RscString (void)=default
 Destructs this instance and frees all resources. More...
 
 operator String (void) const
 Converts to new instance of Arp::String More...
 
const char * CStr (void) const
 Returns pointer to internal buffer. More...
 
char * CStr (void)
 Returns pointer to internal buffer. More...
 
String ToString (void) const
 Converts to new instance of Arp::String More...
 

Detailed Description

template<int N>
class Arp::System::Rsc::Services::RscString< N >

Contains a static string with string lentgh up to N characters. The string has to be null terminated.

Constructor & Destructor Documentation

◆ RscString() [1/4]

template<int N>
Arp::System::Rsc::Services::RscString< N >::RscString ( void  )
inline

Constructs an RscString instance with an emtpy string.

◆ RscString() [2/4]

template<int N>
Arp::System::Rsc::Services::RscString< N >::RscString ( const char *  pChars)
inline

Constructs an RscString instance and copies the null terminated c-string in internal buffer.

Parameters
pCharsNull terminated string to copy into internal buffer

◆ RscString() [3/4]

template<int N>
Arp::System::Rsc::Services::RscString< N >::RscString ( const String arg)
inline

Copy constructor.

◆ RscString() [4/4]

template<int N>
Arp::System::Rsc::Services::RscString< N >::RscString ( const RscString< N > &  arg)
default

Copy constructor.

◆ ~RscString()

template<int N>
Arp::System::Rsc::Services::RscString< N >::~RscString ( void  )
default

Destructs this instance and frees all resources.

Member Function Documentation

◆ CStr() [1/2]

template<int N>
char * Arp::System::Rsc::Services::RscString< N >::CStr ( void  )
inline

Returns pointer to internal buffer.

Returns
Pointer to internal buffer

◆ CStr() [2/2]

template<int N>
const char * Arp::System::Rsc::Services::RscString< N >::CStr ( void  ) const
inline

Returns pointer to internal buffer.

Returns
Pointer to internal buffer

◆ operator String()

template<int N>
Arp::System::Rsc::Services::RscString< N >::operator String ( void  ) const
inline

Converts to new instance of Arp::String

Returns
New instance of Arp::String

◆ operator=()

template<int N>
RscString& Arp::System::Rsc::Services::RscString< N >::operator= ( const RscString< N > &  arg)
default

Assignment operator.

◆ ToString()

template<int N>
String Arp::System::Rsc::Services::RscString< N >::ToString ( void  ) const
inline

Converts to new instance of Arp::String

Returns
New instance of Arp::String

The documentation for this class was generated from the following file: