Represents a DBus signature. More...
#include <signature.h>
Public Types | |
typedef SignatureIterator | iterator |
typedef const SignatureIterator | const_iterator |
typedef std::string::size_type | size_type |
Public Member Functions | |
Signature () | |
Signature (const std::string &s, size_type pos=0, size_type n=npos) | |
Signature (const char *) | |
Signature (const char *s, size_type n) | |
Signature (size_type n, char c) | |
~Signature () | |
operator const std::string & () const | |
const std::string & | str () const |
Signature & | operator= (const std::string &s) |
Signature & | operator= (const char *s) |
bool | operator== (const std::string &s) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
bool | is_valid () const |
True if the signature is a valid DBus signature. More... | |
bool | is_singleton () const |
True if the signature is a valid DBus signature and contains exactly one complete type. More... | |
void | print_tree (std::ostream *stream) const |
Print the signature tree to the given ostream. More... | |
Static Public Attributes | |
static const size_type | npos = std::string::npos |
Private Member Functions | |
void | initialize () |
std::shared_ptr< priv::SignatureNode > | create_signature_tree (std::string::const_iterator *it, std::stack< ContainerType > *container_stack, bool *ok) |
void | print_node (std::ostream *stream, priv::SignatureNode *node, int spaces) const |
Private Attributes | |
std::shared_ptr< priv_data > | m_priv |
Represents a DBus signature.
DBus signatures indicate what type of data the message contains/the method parameters.
typedef const SignatureIterator DBus::Signature::const_iterator |
typedef std::string::size_type DBus::Signature::size_type |
DBus::Signature::Signature | ( | ) |
References initialize(), and m_priv.
DBus::Signature::Signature | ( | const char * | s | ) |
References initialize(), and m_priv.
DBus::Signature::Signature | ( | const char * | s, |
size_type | n | ||
) |
References initialize(), and m_priv.
DBus::Signature::Signature | ( | size_type | n, |
char | c | ||
) |
References initialize(), and m_priv.
DBus::Signature::~Signature | ( | ) |
Signature::iterator DBus::Signature::begin | ( | ) |
References m_priv.
Referenced by DBus::Variant::createFromDemarshal(), DBus::Demarshaling::demarshal_variant(), DBus::ErrorMessage::message(), DBus::MessageAppendIterator::open_container(), DBus::priv::VariantAppendIterator::open_container(), DBus::MessageAppendIterator::operator<<(), DBus::priv::VariantAppendIterator::operator<<(), DBus::Variant::remarshal(), and DBus::priv::VariantIterator::VariantIterator().
Signature::const_iterator DBus::Signature::begin | ( | ) | const |
References m_priv.
|
private |
Signature::iterator DBus::Signature::end | ( | ) |
Signature::const_iterator DBus::Signature::end | ( | ) | const |
|
private |
References create_signature_tree(), LOGGER_NAME, m_priv, SIMPLELOGGER_DEBUG, and SIMPLELOGGER_TRACE.
Referenced by Signature().
bool DBus::Signature::is_singleton | ( | ) | const |
True if the signature is a valid DBus signature and contains exactly one complete type.
References DBus::INVALID, and m_priv.
bool DBus::Signature::is_valid | ( | ) | const |
DBus::Signature::operator const std::string & | ( | ) | const |
|
inline |
References str().
|
private |
References DBus::priv::SignatureNode::m_dataType.
void DBus::Signature::print_tree | ( | std::ostream * | stream | ) | const |
const std::string & DBus::Signature::str | ( | ) | const |
References m_priv.
Referenced by DBus::Message::append_signature(), DBus::Marshaling::marshal(), DBus::MessageAppendIterator::operator<<(), DBus::operator<<(), and operator==().
|
private |
Referenced by begin(), create_signature_tree(), initialize(), is_singleton(), is_valid(), operator=(), print_tree(), Signature(), and str().
|
static |