Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Private Attributes
OODebug::Command Class Reference

A Command Packet as in http://docs.oracle.com/javase/7/docs/technotes/guides/jpda/jdwp-spec.html. More...

Inheritance diagram for OODebug::Command:
OODebug::MessagePart OODebug::AllThreadsCommand OODebug::ClassesBySignatureCommand OODebug::CompositeCommand OODebug::EventClearCommand OODebug::EventSetCommand OODebug::FramesCommand OODebug::GetArrayValuesCommand OODebug::GetValuesCommand OODebug::IDSizeCommand OODebug::LengthCommand OODebug::LineTableCommand OODebug::MethodsCommand OODebug::ResumeCommand OODebug::SignatureCommand OODebug::SourceFileCommand OODebug::StringValueCommand OODebug::SuspendCommand OODebug::ThreadNameCommand OODebug::VariableTableCommand OODebug::VersionCommand

Public Member Functions

 Command ()=default
 
virtual ~Command () override
 
- Public Member Functions inherited from OODebug::MessagePart
virtual ~MessagePart ()
 
void addMessageField (ReadOperator reader, WriteOperator writer=nullptr)
 
virtual int kind () const
 

Static Public Member Functions

static void resetIds ()
 
- Static Public Member Functions inherited from OODebug::MessagePart
template<typename Enum >
static constexpr std::enable_if< std::is_enum< Enum >::value, typename std::underlying_type< Enum >::type >::type cast (Enum enumValue)
 Casts an enum value to its underlying type. More...
 

Public Attributes

MessageField< qint8 > command {&Command::command, this}
 
MessageField< Protocol::CommandSetcommandSet {&Command::commandSet, this}
 
MessageField< qint8 > flags {&Command::flags, this}
 
MessageField< qint32 > id {&Command::id, this}
 
MessageField< qint32 > length {&Command::length, this}
 

Protected Member Functions

template<typename T , typename = typename std::enable_if<std::is_enum<T>::value>::type>
 Command (Protocol::CommandSet cmdSet, T cmd)
 

Static Private Attributes

static int nextId_ = 0
 

Additional Inherited Members

- Public Types inherited from OODebug::MessagePart
using ReadOperator = std::function< void(MessagePart *, QDataStream &)>
 
using WriteOperator = std::function< void(const MessagePart *, QDataStream &)>
 
- Static Public Attributes inherited from OODebug::MessagePart
static const int noKind {}
 

Detailed Description

A Command Packet as in http://docs.oracle.com/javase/7/docs/technotes/guides/jpda/jdwp-spec.html.

Constructor & Destructor Documentation

◆ Command() [1/2]

OODebug::Command::Command ( )
default

◆ ~Command()

OODebug::Command::~Command ( )
overridevirtual

◆ Command() [2/2]

template<typename T , typename >
OODebug::Command::Command ( Protocol::CommandSet  cmdSet,
cmd 
)
protected

Member Function Documentation

◆ resetIds()

void OODebug::Command::resetIds ( )
static

Member Data Documentation

◆ command

MessageField<qint8> OODebug::Command::command {&Command::command, this}

◆ commandSet

MessageField<Protocol::CommandSet> OODebug::Command::commandSet {&Command::commandSet, this}

◆ flags

MessageField<qint8> OODebug::Command::flags {&Command::flags, this}

◆ id

MessageField<qint32> OODebug::Command::id {&Command::id, this}

◆ length

MessageField<qint32> OODebug::Command::length {&Command::length, this}

◆ nextId_

int OODebug::Command::nextId_ = 0
staticprivate