- Timestamp:
- 07/23/08 12:44:56 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
v2/branches/dev/monkey/src/variablesmanager/VariablesManager.cpp
r1860 r2188 27 27 ** 28 28 ****************************************************************************/ 29 /*! 30 \file VariablesManager.cpp 31 \date 2008-01-14T00:37:18 32 \author Andrei KOPATS 33 \brief Implementation of VariablesManager class 34 */ 35 29 36 #include "VariablesManager.h" 30 37 … … 34 41 #include <QDateTime> 35 42 43 /*! 44 Class constructor 45 \param o Parent object. Passing to QObject constructor 46 */ 36 47 VariablesManager::VariablesManager( QObject* o ) 37 48 : QObject( o ) 38 49 {} 39 50 51 /*! 52 Get value of variable 53 \param locals Local dictionary of variables 54 \return Value of variable. Empty string, if variable is unknown 55 */ 40 56 QString VariablesManager::getVariable (QString name, Dictionary locals) 41 57 { … … 58 74 } 59 75 76 /*! 77 Check, if variable is set localy or globaly 78 \param name Name of variable 79 \param locals Local dictionary 80 \retval true Variable is set 81 \retval false Variable is not set 82 */ 60 83 bool VariablesManager::isSet (QString name, Dictionary& locals) 61 84 { … … 67 90 } 68 91 69 #include <QDebug> 92 /*! 93 Replace all variables in the text by it's values 94 \param text Text for processing 95 \param locals Local dictionary of variables 96 return New string 97 */ 70 98 QString VariablesManager::replaceAllVariables (QString text, Dictionary locals) 71 99 { … … 81 109 findedVariables.append (s); 82 110 p += rex.matchedLength(); 83 qWarning() << "var: " << s;84 111 } 85 112 // replace occurences
