Blame | Last modification | View Log | RSS feed
//## begin module%1.7%.codegen_version preserve=yes// Read the documentation to learn more about C++ code generator// versioning.//## end module%1.7%.codegen_version//## begin module%41FF0DE8006D.cm preserve=no//## end module%41FF0DE8006D.cm//## begin module%41FF0DE8006D.cp preserve=no// C O P Y R I G H T N O T I C E// This material is confidential to ERG and may not be disclosed in whole// or in part to any third party nor used in any manner whatsoever other// than for the purposes expressly consented to by ERG in writing.//// This material is also copyright and may not be reproduced, stored in a// retrieval system or transmitted in any form or by any means in whole or// in part without the express written consent of ERG.//## end module%41FF0DE8006D.cp//## Module: TestScenarioTemplate%41FF0DE8006D; Pseudo Package specification//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TestScenarioTemplate.h#ifndef TestScenarioTemplate_h#define TestScenarioTemplate_h 1//## begin module%41FF0DE8006D.additionalIncludes preserve=no//## end module%41FF0DE8006D.additionalIncludes//## begin module%41FF0DE8006D.includes preserve=yes#include <map>#include <string>//## end module%41FF0DE8006D.includesclass TransactionFieldTemplate;//## begin module%41FF0DE8006D.additionalDeclarations preserve=yes//## end module%41FF0DE8006D.additionalDeclarations//## begin TestScenarioTemplate%41FF0DE8006D.preface preserve=yes//## end TestScenarioTemplate%41FF0DE8006D.preface//## Class: TestScenarioTemplate%41FF0DE8006D; private// A test scenario.//## Category: TransactionTestManager::Transaction Templates%41FDA12000E7//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4//## Persistence: Transient//## Cardinality/Multiplicity: nclass TestScenarioTemplate{//## begin TestScenarioTemplate%41FF0DE8006D.initialDeclarations preserve=yes//## end TestScenarioTemplate%41FF0DE8006D.initialDeclarationspublic://## Constructors (specified)//## Operation: TestScenarioTemplate%41FF0F6F0398// The only constructor.TestScenarioTemplate (const int &scenario);//## Destructor (generated)virtual ~TestScenarioTemplate();//## Other Operations (specified)//## Operation: findMatch%41FF6BF70156// Evaluate to the number of matches to the given XPath. As a side effect, the// value is set to the value of the first match found.const unsigned findMatch (std::string &value, // The value of the first match found.const std::string &xpath // The XPath.) const;//## Operation: getField%41FF214B013F// Evaluate to the given template field. When the field doesn't already exist,// create it.TransactionFieldTemplate& getField (const std::string ®ularExpression // The regular expression that defines to which fields the template may be// applied.);//## Operation: getTemplateCount%41FF409A021F// Evaluate to the number of templates for this scenario.const unsigned getTemplateCount () const;// Additional Public Declarations//## begin TestScenarioTemplate%41FF0DE8006D.public preserve=yes//## end TestScenarioTemplate%41FF0DE8006D.publicprotected:// Additional Protected Declarations//## begin TestScenarioTemplate%41FF0DE8006D.protected preserve=yes//## end TestScenarioTemplate%41FF0DE8006D.protectedprivate://## Constructors (generated)TestScenarioTemplate();TestScenarioTemplate(const TestScenarioTemplate &right);//## Assignment Operation (generated)TestScenarioTemplate & operator=(const TestScenarioTemplate &right);// Data Members for Class Attributes//## Attribute: scenario%41FF0F5F00D9// The transaction specification number of this transaction.//## begin TestScenarioTemplate::scenario%41FF0F5F00D9.attr preserve=no private: int {VAC}const int m_scenario;//## end TestScenarioTemplate::scenario%41FF0F5F00D9.attr// Data Members for Associations//## Association: TransactionTestManager::Transaction Templates::<unnamed>%41FF0BD90286//## Role: TestScenarioTemplate::fieldTemplate%41FF0BDA0034// The collection of field templates that have been defined for this// transaction.//## Qualifier: regularExpression%41FF24C5029E; std::string// The regular expression that defines to which fields this template applies.//## begin TestScenarioTemplate::fieldTemplate%41FF0BDA0034.role preserve=no private: TransactionFieldTemplate {1 -> 1RFHgAN}std::map<std::string, TransactionFieldTemplate *> m_fieldTemplate;//## end TestScenarioTemplate::fieldTemplate%41FF0BDA0034.role// Additional Private Declarations//## begin TestScenarioTemplate%41FF0DE8006D.private preserve=yes//## end TestScenarioTemplate%41FF0DE8006D.privateprivate: //## implementation// Additional Implementation Declarations//## begin TestScenarioTemplate%41FF0DE8006D.implementation preserve=yes//## end TestScenarioTemplate%41FF0DE8006D.implementation};//## begin TestScenarioTemplate%41FF0DE8006D.postscript preserve=yes//## end TestScenarioTemplate%41FF0DE8006D.postscript// Class TestScenarioTemplate//## begin module%41FF0DE8006D.epilog preserve=yes//## end module%41FF0DE8006D.epilog#endif