DBus::TypeInfo Class Reference

Contains useful data about the type in order for code generation to happen in an easy manner. More...

#include <types.h>

Public Member Functions

 TypeInfo (DataType d)
 The type to get info for. More...
 
bool isTemplated () const
 Returns true if this type is templated. More...
 
std::vector< std::string > includeFilesForType () const
 Returns the needed includes in order to use this type. More...
 
std::string cppType () const
 Returns the C++ type of this DataType. More...
 
bool is_basic () const
 True if the element type is a basic type. More...
 
bool is_fixed () const
 True if the element type is a fixed type. More...
 
bool is_container () const
 True if the element type is a container. More...
 
int32_t alignment () const
 Return the alignment of the type. More...
 
char to_dbus_char () const
 Turn this type into a DBus char. More...
 

Private Attributes

DataType m_type
 

Detailed Description

Contains useful data about the type in order for code generation to happen in an easy manner.

Constructor & Destructor Documentation

◆ TypeInfo()

DBus::TypeInfo::TypeInfo ( DataType  d)

The type to get info for.

Member Function Documentation

◆ alignment()

◆ cppType()

◆ includeFilesForType()

std::vector< std::string > DBus::TypeInfo::includeFilesForType ( ) const

◆ is_basic()

◆ is_container()

◆ is_fixed()

bool DBus::TypeInfo::is_fixed ( ) const

◆ isTemplated()

bool DBus::TypeInfo::isTemplated ( ) const

Returns true if this type is templated.

References DBus::ARRAY, DBus::DICT_ENTRY, m_type, and DBus::STRUCT.

◆ to_dbus_char()

Member Data Documentation

◆ m_type


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