ADTF  3.15.2
string_intf.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Classes

class  IString
 The IString interface provides methods for getting and setting strings through abstract interfaces. More...
 
struct  adtf_string_forward< T >
 Implementation concept template for user defined adtf_string type support (see Supported types for adtf_string<T> for writing and reading strings via interface IString). More...
 
struct  adtf_string_forward< std::string >
 Specialization for std::string class. More...
 
struct  adtf_string_forward< adtf::util::cString >
 Specialization for adtf::util::cString class. More...
 
struct  adtf_string_forward< adtf::util::cFilename >
 Specialization for adtf::util::cFilename class. More...
 
struct  adtf_string_forward< const char >
 Specialisation for const char pointer. More...
 
class  adtf_string< T >
 Wrapping template for a rvalue reference of an IString interface for the type T (see Supported types for adtf_string<T> for writing and reading strings via interface IString). More...
 

Namespaces

 adtf
 Namespace for entire ADTF SDK.
 
 adtf::base
 Namespace for the ADTF Base SDK.
 
 adtf::base::ant
 Namespace for all functionality of the ADTF Base SDK provided since v3.0.
 

Macros

#define adtf_string_intf(__string__)   ::adtf::base::adtf_string<typename std::remove_reference<decltype(__string__)>::type>(& (__string__))
 The adtf_string_intf Macro helps to easily create a rvalue reference of a adtf::util::cString. More...
 
#define adtf_char_intf(__const_char_ptr__)   ::adtf::base::adtf_string<const char>(__const_char_ptr__)
 Helper for const tchar to a IString interface if used for set value operations. More...
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file string_intf.h.

Macro Definition Documentation

◆ adtf_char_intf

#define adtf_char_intf (   __const_char_ptr__)    ::adtf::base::adtf_string<const char>(__const_char_ptr__)

Helper for const tchar to a IString interface if used for set value operations.

Parameters
__const_char_ptr__valid const char pointer

Definition at line 307 of file string_intf.h.

◆ adtf_string_intf

#define adtf_string_intf (   __string__)    ::adtf::base::adtf_string<typename std::remove_reference<decltype(__string__)>::type>(& (__string__))

The adtf_string_intf Macro helps to easily create a rvalue reference of a adtf::util::cString.

Use as follows:

struct foo
{
tResult GetString(IString&& strValue)
{
return strValue.Set("bar");
}
};
adtf::util::cString strMyValue = "foo";
foo oFooInst;
oFooInst.GetString(adtf_string_intf(strMyValue));
// strMyValue is now set to "bar"
A common result class usable as return value throughout.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Definition: string.h:2772
#define adtf_string_intf(__string__)
The adtf_string_intf Macro helps to easily create a rvalue reference of a adtf::util::cString.
Definition: string_intf.h:303
Parameters
__string__Valid instance of a adtf::util::cString
Remarks

Definition at line 303 of file string_intf.h.