17 #ifndef DBUSCXX_TYPES_H
18 #define DBUSCXX_TYPES_H
25 return static_cast<int>( t );
29 return static_cast<int>( t );
150 template <
typename... args>
159 template <
typename T>
162 template <
typename ...T>
A FileDescriptor holds a UNIX file descriptor that can be passed between processes.
Definition: filedescriptor.h:21
Represents a DBus Path.
Definition: path.h:21
Represents a DBus signature.
Definition: signature.h:74
Contains useful data about the type in order for code generation to happen in an easy manner.
Definition: types.h:174
DataType m_type
Definition: types.h:218
int32_t alignment() const
Return the alignment of the type.
Definition: types.cpp:181
TypeInfo(DataType d)
The type to get info for.
Definition: types.cpp:15
bool is_container() const
True if the element type is a container.
Definition: types.cpp:168
std::string cppType() const
Returns the C++ type of this DataType.
Definition: types.cpp:72
bool isTemplated() const
Returns true if this type is templated.
Definition: types.cpp:17
std::vector< std::string > includeFilesForType() const
Returns the needed includes in order to use this type.
Definition: types.cpp:31
char to_dbus_char() const
Turn this type into a DBus char.
Definition: types.cpp:215
bool is_basic() const
True if the element type is a basic type.
Definition: types.cpp:132
bool is_fixed() const
True if the element type is a fixed type.
Definition: types.cpp:152
A Variant is a type-safe union for DBus operations.
Definition: variant.h:42
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18
int typeToDBusContainerType(ContainerType t)
Definition: types.h:28
ContainerType
Definition: enums.h:73
DataType checked_type_cast(int n)
Definition: types.h:166
std::shared_ptr< DBus::Connection > operator<<(std::shared_ptr< DBus::Connection > ptr, std::shared_ptr< DBus::Message > msg)
Definition: connection.h:431
bool is_ending_container(char c)
Definition: types.h:114
DataType type(const uint8_t &)
Definition: types.h:137
ContainerType char_to_ending_container(char c)
Definition: types.h:125
DataType char_to_dbus_type(char c)
Definition: types.h:32
DataType
Definition: enums.h:52
int typeToDBusType(DataType t)
Definition: types.h:24
ContainerType char_to_container_type(char c)
Definition: types.h:94