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

//## begin module%425A0C2601FD.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%425A0C2601FD.cp

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

#ifndef UdDrainFile_h
#define UdDrainFile_h 1

//## begin module%425A0C2601FD.additionalIncludes preserve=no
//## end module%425A0C2601FD.additionalIncludes

//## begin module%425A0C2601FD.includes preserve=yes
//## end module%425A0C2601FD.includes


namespace XMLSchema {
class IXmlSchemaWrapperElement;
class IXmlSchemaWrapperHandle;
class IXmlSchemaWrapperFactory;
class IXmlSchemaWrapperSchema;

} // namespace XMLSchema

//## begin module%425A0C2601FD.additionalDeclarations preserve=yes
//## end module%425A0C2601FD.additionalDeclarations


//## begin UdDrainFile%425A0C2601FD.preface preserve=yes
//## end UdDrainFile%425A0C2601FD.preface

//## Class: UdDrainFile%425A0C2601FD; private
//      A drain file of UD.
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
//## Persistence: Transient
//## Cardinality/Multiplicity: n



class UdDrainFile 
{
  //## begin UdDrainFile%425A0C2601FD.initialDeclarations preserve=yes
  //## end UdDrainFile%425A0C2601FD.initialDeclarations

  public:
    //## Constructors (specified)
      //## Operation: UdDrainFile%425A132E0282
      //        The only constructor.
      UdDrainFile (XMLSchema::IXmlSchemaWrapperFactory &schemaFactory,  // The factory that we may call on to create and destroy schema artefacts.
        // While we do not accept ownership over this instance, we do assume its
        // validity for the remainder of our lifetime.
      XMLSchema::IXmlSchemaWrapperSchema &schema        // The schema.
      );

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


    //## Other Operations (specified)
      //## Operation: getTransactionCount%425A1A1901D3
      //        Evaluate to the number of transactions in this instance.
      const unsigned int getTransactionCount () const;

      //## Operation: read%425A1133022E
      //        Read the UD from the given drain file into this instance.
      const bool read (const bool &hasHeader,   // Of value true when the file has headers, and false otherwise.
      const int &iteration,     // The iteration.
      const char *fileName      // The name of the file.
      );

    // Additional Public Declarations
      //## begin UdDrainFile%425A0C2601FD.public preserve=yes
      //## end UdDrainFile%425A0C2601FD.public

  protected:
    // Additional Protected Declarations
      //## begin UdDrainFile%425A0C2601FD.protected preserve=yes
      //## end UdDrainFile%425A0C2601FD.protected

  private:
    //## Constructors (generated)
      UdDrainFile();

      UdDrainFile(const UdDrainFile &right);

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

    // Data Members for Class Attributes

      //## Attribute: headed%425A1AB401F4
      //        Of value true when the drain file is headed, and false otherwise.
      //## begin UdDrainFile::headed%425A1AB401F4.attr preserve=no  private: bool {VA} false
      bool m_headed;
      //## end UdDrainFile::headed%425A1AB401F4.attr

    // Data Members for Associations

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%425A12D3026D
      //## Role: UdDrainFile::schemaFactory%425A12D60237
      //        The factory that we may call on to create and destroy schema artefacts.
      //        While we do not accept ownership over this instance, we do assume its
      //        validity for the remainder of our lifetime.
      //## begin UdDrainFile::schemaFactory%425A12D60237.role preserve=no  private: XMLSchema::IXmlSchemaWrapperFactory {1 -> 1RFHAN}
      XMLSchema::IXmlSchemaWrapperFactory *m_schemaFactory;
      //## end UdDrainFile::schemaFactory%425A12D60237.role

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%425A12FE006C
      //## Role: UdDrainFile::schema%425A13010110
      //        The schema.  While we do not accept ownership over this instance, we do
      //        assume its validity for the remainder of our lifetime.
      //## begin UdDrainFile::schema%425A13010110.role preserve=no  private: XMLSchema::IXmlSchemaWrapperSchema {1 -> 1RFHAN}
      XMLSchema::IXmlSchemaWrapperSchema *m_schema;
      //## end UdDrainFile::schema%425A13010110.role

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%425A185B00F3
      //## Role: UdDrainFile::structureHandle%425A185B0334
      //        The handle of structure that describes this drain file.  We need to keep
      //        theis, because we cannot get the handle from the structure, and we need the
      //        handle to destroy the structure in the schema.
      //## begin UdDrainFile::structureHandle%425A185B0334.role preserve=no  private: XMLSchema::IXmlSchemaWrapperHandle {1 -> 1RFHgAN}
      XMLSchema::IXmlSchemaWrapperHandle *m_structureHandle;
      //## end UdDrainFile::structureHandle%425A185B0334.role

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%425A185D015B
      //## Role: UdDrainFile::structure%425A185D035E
      //        The structure that describes this transaction.
      //## begin UdDrainFile::structure%425A185D035E.role preserve=no  private: XMLSchema::IXmlSchemaWrapperElement { -> 1RFHgAN}
      XMLSchema::IXmlSchemaWrapperElement *m_structure;
      //## end UdDrainFile::structure%425A185D035E.role

    // Additional Private Declarations
      //## begin UdDrainFile%425A0C2601FD.private preserve=yes
      //## end UdDrainFile%425A0C2601FD.private

  private: //## implementation
    // Additional Implementation Declarations
      //## begin UdDrainFile%425A0C2601FD.implementation preserve=yes
      //## end UdDrainFile%425A0C2601FD.implementation

};

//## begin UdDrainFile%425A0C2601FD.postscript preserve=yes
//## end UdDrainFile%425A0C2601FD.postscript

// Class UdDrainFile 

//## begin module%425A0C2601FD.epilog preserve=yes
//## end module%425A0C2601FD.epilog


#endif