OpenDDS  Snapshot(2023/04/28-20:55)
Static Public Member Functions | List of all members
OpenDDS::SafetyProfile::StringTraits< CORBA::Char > Struct Template Reference

#include <SafetyProfileSequence.h>

Static Public Member Functions

static CORBA::Charalloc (CORBA::ULong len)
 
static CORBA::Charempty ()
 
static CORBA::Chardup (const CORBA::Char *s)
 
static void free (CORBA::Char *s)
 
static int cmp (const CORBA::Char *lhs, const CORBA::Char *rhs)
 

Detailed Description

template<>
struct OpenDDS::SafetyProfile::StringTraits< CORBA::Char >

Definition at line 25 of file SafetyProfileSequence.h.

Member Function Documentation

◆ alloc()

Definition at line 27 of file SafetyProfileSequence.h.

References CORBA::string_alloc().

27 { return CORBA::string_alloc(len); }
char * string_alloc(ULong len)

◆ cmp()

static int OpenDDS::SafetyProfile::StringTraits< CORBA::Char >::cmp ( const CORBA::Char lhs,
const CORBA::Char rhs 
)
inlinestatic

Definition at line 32 of file SafetyProfileSequence.h.

33  {
34  return std::strcmp(lhs, rhs);
35  }

◆ dup()

static CORBA::Char* OpenDDS::SafetyProfile::StringTraits< CORBA::Char >::dup ( const CORBA::Char s)
inlinestatic

Definition at line 29 of file SafetyProfileSequence.h.

References CORBA::string_dup().

29 { return CORBA::string_dup(s); }
char * string_dup(const char *)

◆ empty()

static CORBA::Char* OpenDDS::SafetyProfile::StringTraits< CORBA::Char >::empty ( void  )
inlinestatic

Definition at line 28 of file SafetyProfileSequence.h.

References dup().

28 { return dup(""); }
static CORBA::Char * dup(const CORBA::Char *s)

◆ free()

static void OpenDDS::SafetyProfile::StringTraits< CORBA::Char >::free ( CORBA::Char s)
inlinestatic

Definition at line 30 of file SafetyProfileSequence.h.

References CORBA::string_free().

30 { if (s) CORBA::string_free(s); }
void string_free(char *)

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