Defines | Functions

C:/CVUT/diplomka/Automata_editor/sources/serializers.cpp File Reference

#include "constants.h"
#include "serializers.h"
#include "state.h"
#include "stateManager.h"
#include "transition.h"
#include "oneStateTransition.h"
#include "twoStatesTransition.h"
#include "transitionManager.h"
#include "editor.h"
#include "label.h"
#include <QGraphicsItem>
#include <QPoint>
#include <QList>
#include <QString>
#include <QDataStream>
#include <QMetaType>
Include dependency graph for serializers.cpp:

Go to the source code of this file.

Defines

#define SS_PARAMS(obj, xx)
#define TS_PARAMS(obj, xx)

Functions

QDataStream & operator<< (QDataStream &out, const StateSerializer &s)
 qRegisterMetaTypeStreamOperators<StateSerializer>("StateSerializer"); is in editor's constructor.
QDataStream & operator<< (QDataStream &out, const SelectionSerializer &s)
 qRegisterMetaTypeStreamOperators<SelectionSerializer>("SelectionSerializer"); is in editor's constructor.
QDataStream & operator<< (QDataStream &out, const TransitionSerializer &s)
 qRegisterMetaTypeStreamOperators<TransitionSerializer>("TransitionSerializer"); is in editor's constructor.
QDataStream & operator>> (QDataStream &in, TransitionSerializer &s)
QDataStream & operator>> (QDataStream &in, StateSerializer &s)
QDataStream & operator>> (QDataStream &in, SelectionSerializer &s)

Define Documentation

#define SS_PARAMS (   obj,
  xx 
)
Value:
obj.m_stateName xx \
    obj.m_pos xx obj.m_typeName xx obj.m_label xx \
    obj.m_dimmed xx obj.m_stateLineStyle xx \
    obj.m_stateLineWidth xx obj.m_stateLineColor xx \
    obj.m_stateLabelColor xx obj.m_stateLabelScale xx \
    obj.m_stateFillStatus xx obj.m_stateFillColor xx \
    obj.m_dimStateLineStyle xx obj.m_dimStateLineColor xx \
    obj.m_dimStateLineCoef xx obj.m_dimStateLabelColor xx \
    obj.m_dimStateFillColor xx obj.m_stateLineDoubleCoef xx \
    obj.m_stateLineDoubleSep xx obj.m_stateLabelSize

Definition at line 24 of file serializers.cpp.

Referenced by operator<<(), and operator>>().

#define TS_PARAMS (   obj,
  xx 
)
Value:
obj.m_stateNames xx \
    obj.m_typeName xx obj.m_label xx obj.m_labelPos xx \
    obj.m_dimmed xx obj.m_arcAngleA xx obj.m_arcAngleB xx \
    obj.m_nCurv xx obj.m_leftOriented xx obj.m_direction xx obj.m_labels xx \
    obj.m_edgeLineStyle xx obj.m_edgeLineWidth xx \
    obj.m_edgeLineColor xx obj.m_edgeLabelColor xx \
    obj.m_edgeLabelScale xx obj.m_edgeLineDblStatus xx \
    obj.m_edgeLineBorderCoef xx obj.m_edgeLineBorderColor xx \
    obj.m_edgeLineDblCoef xx obj.m_edgeLineDblSep xx \
    obj.m_dimEdgeLineStyle xx obj.m_dimEdgeLineColor xx \
    obj.m_dimEdgeLineCoef xx obj.m_dimEdgeLabelColor xx \
    obj.m_labels xx obj.m_labelsPositions xx obj.m_labelsLeftOriented

Definition at line 118 of file serializers.cpp.

Referenced by operator<<(), and operator>>().


Function Documentation

QDataStream& operator<< ( QDataStream &  out,
const StateSerializer s 
)

qRegisterMetaTypeStreamOperators<StateSerializer>("StateSerializer"); is in editor's constructor.

Definition at line 36 of file serializers.cpp.

References StateSerializer::m_valid, and SS_PARAMS.

QDataStream& operator<< ( QDataStream &  out,
const SelectionSerializer s 
)

qRegisterMetaTypeStreamOperators<SelectionSerializer>("SelectionSerializer"); is in editor's constructor.

Definition at line 262 of file serializers.cpp.

References SelectionSerializer::m_hotSpot, SelectionSerializer::m_serializedStates, SelectionSerializer::m_serializedTransitions, and SelectionSerializer::m_valid.

QDataStream& operator<< ( QDataStream &  out,
const TransitionSerializer s 
)

qRegisterMetaTypeStreamOperators<TransitionSerializer>("TransitionSerializer"); is in editor's constructor.

Definition at line 131 of file serializers.cpp.

References DBGLOG_SER, TransitionSerializer::m_stateNames, TransitionSerializer::m_valid, and TS_PARAMS.

QDataStream& operator>> ( QDataStream &  in,
TransitionSerializer s 
)
QDataStream& operator>> ( QDataStream &  in,
StateSerializer s 
)

Definition at line 44 of file serializers.cpp.

References StateSerializer::m_valid, and SS_PARAMS.

QDataStream& operator>> ( QDataStream &  in,
SelectionSerializer s 
)