#include "xmlsimplemodel.h"
Go to the source code of this file.
Defines | |
#define | SAFE_CALL_EMITTER(_x_) |
Call SAX emitter in a safe way. More... | |
#define | RESET_BUFFER |
Resets (empties) the input buffer. More... | |
#define | CHANGE_STATE(_s_) |
Change the state of the model. More... | |
#define | RESET_STATE state = StructuralSymbols::None |
Set the state to None. | |
#define | APPEND_ALL_DATA_LENGTH(_gr_, _data_, _length_, _complete_) |
#define | APPEND_ALL_DATA(_gr_, _data_, _complete_) |
#define | APPEND_BUFFER_DATA(_gr_, _buffer_, _nrItems_) |
#define | FINISH_ELEMENT_START(_elementName_) |
Finish the element start SAX event. More... |
This file contains definitions of XmlSimpleModel class methods.
Definition in file xmlsimplemodel.cpp.
|
Value: { \ CHECK_POINTER(_gr_); \ \ if (!_data_) \ return false; \ \ for (int _i_ = 0; _data_[_i_]; _i_++) \ _gr_->append((TerminalValue)_data_[_i_]); \ \ if (_complete_) \ _gr_->append(StructuralSymbols::EndOfBlock); \ }
Definition at line 104 of file xmlsimplemodel.cpp. |
|
Value: { \ CHECK_POINTER(_gr_); \ \ for (int _i_ = 0; _i_ < _length_; _i_++) \ _gr_->append((TerminalValue)_data_[_i_]); \ \ if (_complete_) \ _gr_->append(StructuralSymbols::EndOfBlock); \ }
Definition at line 85 of file xmlsimplemodel.cpp. |
|
Value: { \ for (size_t _i_ = 0; _i_ < _nrItems_; _i_++) \ { \ _gr_->append(_buffer_[_i_]); \ } \ }
Definition at line 126 of file xmlsimplemodel.cpp. |
|
Value: { \ stateChanged = false; \ if (state != StructuralSymbols::KnownElement && \ (state == StructuralSymbols::None || state == _s_)) \ { \ state = _s_; \ stateChanged = true; \ } \ }
The state is changed only if current state is None.
Definition at line 62 of file xmlsimplemodel.cpp. |
|
Finish the element start SAX event.
The event can be only emitted if all of the attributes and their values have been read.
Definition at line 143 of file xmlsimplemodel.cpp. Referenced by XmlSimpleModel::receiveData. |
|
Value: { \ buffer[0] = 0; \ bufferLength = 0; \ }
Definition at line 48 of file xmlsimplemodel.cpp. Referenced by XmlSimpleModel::receiveData. |
|
Value: if (saxEmitter) \ saxEmitter->_x_;
The methods of the emitter are called only if the emitter exists.
Definition at line 42 of file xmlsimplemodel.cpp. |