ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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...
 
class  cStringLengthProxy
 
class  cStringRedirect
 
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...
 
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...
 
class  IString
 The IString interface provides methods for getting and setting strings through abstract interfaces. More...
 
class  cStringRedirect
 

Namespaces

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

Macros

#define adtf_string_intf(__string__)
 The adtf_string_intf Macro helps to easily create a rvalue reference of a adtf::util::cString.
 
#define adtf_char_intf(__const_char_ptr__)
 Helper for const tchar to a IString interface if used for set value operations.
 

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__)
Value:
Wrapping template for a rvalue reference of an IString interface for the type T (see Supported types ...

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 375 of file string_intf.h.

◆ adtf_string_intf

#define adtf_string_intf ( __string__)
Value:
::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_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
The IString interface provides methods for getting and setting strings through abstract interfaces.
Definition string_intf.h:28
#define adtf_string_intf(__string__)
The adtf_string_intf Macro helps to easily create a rvalue reference of a adtf::util::cString.
Parameters
__string__Valid instance of a adtf::util::cString
Remarks
  • Works with:
    • adtf::util::cString
    • std::string
    • QString (requires include of adtfui/qt_string_intf.h or adtfui/adtf_ui.h)

Definition at line 371 of file string_intf.h.

Referenced by adtf::services::ant::adtf_resolve_macros(), adtf::filter::ant::filter_create_pin_with_exact_name(), adtf::filter::ant::filter_create_pin_with_exact_name(), interface_client< Interface >::Get(), adtf::streaming::lucky::get_stream_type_audio_format(), adtf::streaming::ant::operator==(), property_value< T >::Set(), and adtf::streaming::lucky::set_stream_type_audio_format().