X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/8f0bedf735fe2b306c11c3f4a168245a05e37ccd..14cd6d834ab531525a51c6a6992583b3e9143e02:/BlockImplementation.h?ds=sidebyside diff --git a/BlockImplementation.h b/BlockImplementation.h index 72776e3..a9a5249 100644 --- a/BlockImplementation.h +++ b/BlockImplementation.h @@ -35,6 +35,7 @@ public: inline QHash getConsumptionPattern() { return consumptionPattern; } inline QHash getProductionPattern() { return productionPattern; } inline QString getProductionCounter() { return productionCounter; } + inline QList getResources() { return resources; } // setters inline void setDelta(QString _delta) { delta = _delta; } @@ -46,25 +47,18 @@ public: inline bool hasNoPatterns() { return noPatterns; } - QString eval(QString line, QTextStream& out); - QString evalComplex(QString line, int num); - QString evalString(QString s); - QList* evalStringComplex(QString s); - QString evalValue(QString s); - QString calculateWidth(QString s); - inline void setReference(ReferenceBlock* _reference) { reference = _reference; } void loadPatterns(QDomElement &root) throw(Exception); bool checkPatterns(); - inline void addSource(QString file) { sources.append(file); } + inline void addResource(QString file) { resources.append(file); } private: QString xmlFile; QString referenceXml; QString referenceMd5; - QList sources; + QList resources; QMap paramMap; ArithmeticEvaluator* evaluator; @@ -74,9 +68,7 @@ private: QString delta; QHash consumptionPattern; // key = reference interface name, value = pattern expression QHash productionPattern; // key = reference interface name, value = pattern expression - QString productionCounter; - - QString getIfaceUserName(AbstractInterface* refIface); // get the name of an interface given by the user, from the reference interface + QString productionCounter; friend QDataStream &operator<<(QDataStream &out, const BlockImplementation &impl); friend QDataStream &operator>>(QDataStream &in, BlockImplementation &impl);