Subversion Repositories DevTools

Rev

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%41FDA1530338.cm preserve=no
//## end module%41FDA1530338.cm

//## begin module%41FDA1530338.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%41FDA1530338.cp

//## Module: TransactionTemplateCollection%41FDA1530338; Pseudo Package specification
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TransactionTemplateCollection.h

#ifndef TransactionTemplateCollection_h
#define TransactionTemplateCollection_h 1

//## begin module%41FDA1530338.additionalIncludes preserve=no
//## end module%41FDA1530338.additionalIncludes

//## begin module%41FDA1530338.includes preserve=yes
//## end module%41FDA1530338.includes


class TestScenarioTemplate;

//## begin module%41FDA1530338.additionalDeclarations preserve=yes
//## end module%41FDA1530338.additionalDeclarations


//## begin TransactionTemplateCollection%41FDA1530338.preface preserve=yes
//## end TransactionTemplateCollection%41FDA1530338.preface

//## Class: TransactionTemplateCollection%41FDA1530338; private
//      This class defines a collection of transaction templates.  A template is
//      applied to a transaction to provide values to fields, without having to
//      enter a value on a field-by-field basis.
//## Category: TransactionTestManager::Transaction Templates%41FDA12000E7
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
//## Persistence: Transient
//## Cardinality/Multiplicity: n



class TransactionTemplateCollection 
{
  //## begin TransactionTemplateCollection%41FDA1530338.initialDeclarations preserve=yes
  //## end TransactionTemplateCollection%41FDA1530338.initialDeclarations

  public:
    //## Constructors (generated)
      TransactionTemplateCollection();

    //## Destructor (generated)
      virtual ~TransactionTemplateCollection();


    //## Other Operations (specified)
      //## Operation: clear%41FF37BC037C
      //        Clear this instance.
      void clear ();

      //## Operation: findTestScenarioTemplate%41FF6B0502AD
      //        Evaluate to the address of the given transaction.  When the transaction
      //        doesn't exist, evaluate to 0.  Ownership over the addressed object remains
      //        with the collection.
      TestScenarioTemplate* findTestScenarioTemplate (const int &scenario) const;

      //## Operation: getTemplateCount%41FF47240341
      //        Evaluate to the number of templates for this scenario.
      const unsigned getTemplateCount () const;

      //## Operation: getTestScenario%41FF20EA00B3
      //        Evaluate to the given transaction.  When the transaction doesn't already
      //        exist, create it.
      TestScenarioTemplate& getTestScenario (const int &scenario);

      //## Operation: haveTemplatesForScenario%41FF3FF8006A
      //        Evaluate to true when templates exist for the given scenario.  Note that
      //        scenario 0 applies to all scenarios.
      const bool haveTemplatesForScenario (const int &scenario  // The scenario.
      ) const;

      //## Operation: isTestScenarioContained%41FF6A27039E
      //        Evaluate to true when the given transaction is contained, and to false
      //        otherwise.
      const bool isTestScenarioContained (const int &scenario);

    // Additional Public Declarations
      //## begin TransactionTemplateCollection%41FDA1530338.public preserve=yes
      //## end TransactionTemplateCollection%41FDA1530338.public

  protected:
    // Additional Protected Declarations
      //## begin TransactionTemplateCollection%41FDA1530338.protected preserve=yes
      //## end TransactionTemplateCollection%41FDA1530338.protected

  private:
    //## Constructors (generated)
      TransactionTemplateCollection(const TransactionTemplateCollection &right);

    //## Assignment Operation (generated)
      TransactionTemplateCollection & operator=(const TransactionTemplateCollection &right);

    // Data Members for Associations

      //## Association: TransactionTestManager::Transaction Templates::<unnamed>%41FDA31F005A
      //## Role: TransactionTemplateCollection::scenario%41FDA31F01D1
      //        The scenarios for which templates have been defined.  Scenario 0 identifies
      //        identifies templates that are defined for all scenarios.
      //## Qualifier: scenario%41FDA333005A; int
      //        The scenario.
      //## begin TransactionTemplateCollection::scenario%41FDA31F01D1.role preserve=no  private: TestScenarioTemplate {1 -> 1RFHgAN}
      std::map<int, TestScenarioTemplate *> m_scenario;
      //## end TransactionTemplateCollection::scenario%41FDA31F01D1.role

    // Additional Private Declarations
      //## begin TransactionTemplateCollection%41FDA1530338.private preserve=yes
      //## end TransactionTemplateCollection%41FDA1530338.private

  private: //## implementation
    // Additional Implementation Declarations
      //## begin TransactionTemplateCollection%41FDA1530338.implementation preserve=yes
      //## end TransactionTemplateCollection%41FDA1530338.implementation

};

//## begin TransactionTemplateCollection%41FDA1530338.postscript preserve=yes
//## end TransactionTemplateCollection%41FDA1530338.postscript

// Class TransactionTemplateCollection 

//## begin module%41FDA1530338.epilog preserve=yes
//## end module%41FDA1530338.epilog


#endif