ADTF  3.14.3
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 ehich defines the layout of a forward string class. More...
 
struct  adtf_string_forward< std::string >
 Specialisation 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. 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 289 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"
#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:285
Parameters
__string__Valid instance of a adtf::util::cString
Remarks

Definition at line 285 of file string_intf.h.


Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Thu Jun 9 2022 by doxygen 1.9.1)