secureswitools/swisistools/source/interpretsislib/expressionevaluator.h
branchRCL_3
changeset 34 741e5bba2bd1
parent 0 ba25891c3a9e
equal deleted inserted replaced
28:98a43fae6e2b 34:741e5bba2bd1
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    48 
    48 
    49 	/**
    49 	/**
    50 	 * Check whether a file exists, corresponds to EXISTS() function in package
    50 	 * Check whether a file exists, corresponds to EXISTS() function in package
    51 	 * format.
    51 	 * format.
    52 	 */
    52 	 */
    53 	bool FindFile(const std::wstring& aFileName);
    53 	bool FindFile(const std::wstring& aFileName, bool aLogInfo = true);
    54 
    54 
    55 	/**
    55 	/**
    56 	 * Queries an application property, which is a key,value pair associated 
    56 	 * Queries an application property, which is a key,value pair associated 
    57 	 * with an isntalled package. This corresponds to APPPROP() function in
    57 	 * with an isntalled package. This corresponds to APPPROP() function in
    58 	 * package format.
    58 	 * package format.
    62 	/**
    62 	/**
    63 	 * Queries the registry to check if a package exists or not.
    63 	 * Queries the registry to check if a package exists or not.
    64 	 */
    64 	 */
    65 	bool Package(TUint32 aKey);
    65 	bool Package(TUint32 aKey);
    66 
    66 
    67 	int Variable( int aVariableId );
    67 	int Variable( int aVariableId, bool aLogInfo = true );
    68 
    68 
    69 	const std::wstring GetPackageName();
    69 	const std::wstring GetPackageName();
    70 
    70 
    71 	/**
    71 	/**
    72 	 * Queries the registry to determine whether the version of a specific
    72 	 * Queries the registry to determine whether the version of a specific
   256 public:
   256 public:
   257 	ExpressionEvaluator(ExpressionEnvironment& aEnvironment);
   257 	ExpressionEvaluator(ExpressionEnvironment& aEnvironment);
   258 	void SetFile(const SisFile& aSisFile);
   258 	void SetFile(const SisFile& aSisFile);
   259 	void SetRegistry(const SisRegistry& aSisRegistry);
   259 	void SetRegistry(const SisRegistry& aSisRegistry);
   260 	
   260 	
   261 	ExpressionResult Evaluate(const CSISExpression& aExpression);
   261 	ExpressionResult Evaluate(const CSISExpression& aExpression, bool aLogInfo = true);
   262 	ExpressionResult Evaluate(const CSISExpression* aExpression);
   262 	ExpressionResult Evaluate(const CSISExpression* aExpression, bool aLogInfo = true);
   263 
   263 
   264 private:
   264 private:
   265 	void Require(const void *aPointer) const;
   265 	void Require(const void *aPointer) const;
   266 
   266 
   267 private:
   267 private: