1 // File: QtxListOfOperations.h
2 // Author: Alexander SOLOVYOV
4 #ifndef __QTX_LIST_OF_OPERATIONS_HEADER__
5 #define __QTX_LIST_OF_OPERATIONS_HEADER__
8 #include "QtxOperations.h"
11 #pragma warning( disable:4251 )
15 //================================================================
18 //================================================================
19 class QTX_EXPORT QtxListOfOperations : public QtxOperations
22 QtxListOfOperations();
23 virtual ~QtxListOfOperations();
25 virtual void opersList( QStringList& ) const;
26 virtual void bracketsList( QStringList&, bool open ) const;
28 virtual bool createValue( const QString&, QtxValue& ) const;
29 virtual int prior ( const QString&, bool isBin ) const;
30 virtual QtxParser::Error isValid( const QString&,
32 const QVariant::Type ) const;
33 virtual QtxParser::Error calculate( const QString&, QtxValue&, QtxValue& ) const;
36 bool has ( const QString& ) const;
37 void append ( const QString&, QtxOperations*, int prior );
38 void prepend( const QString&, QtxOperations*, int prior );
39 void insert ( const QString&, QtxOperations*, int prior, int pos = -1 );
40 void remove ( const QString& );
42 QtxOperations* operations( const QString& ) const;
48 QtxOperations* myOperations;
53 typedef QValueList< OperationSet > OperationSets;
54 typedef OperationSets::const_iterator OperationSetsIterator;