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

//## begin module%4212D05100DB.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%4212D05100DB.cp

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

#ifndef MacCallback_h
#define MacCallback_h 1

//## begin module%4212D05100DB.additionalIncludes preserve=no
//## end module%4212D05100DB.additionalIncludes

//## begin module%4212D05100DB.includes preserve=yes
#include <vcl.h>
#pragma hdrstop
//## end module%4212D05100DB.includes

// IXmlSchemaWrapperTraversalCallback
#include "IXmlSchemaWrapperTraversalCallback.h"

namespace XMLSchema {
class IXmlSchemaWrapperString;
class IXmlSchemaWrapperByteArray;
} // namespace XMLSchema

class IMessageDigest;
class EvaluationContext;

//## begin module%4212D05100DB.additionalDeclarations preserve=yes
//## end module%4212D05100DB.additionalDeclarations


//## begin MacCallback%4212D05100DB.preface preserve=yes
//## end MacCallback%4212D05100DB.preface

//## Class: MacCallback%4212D05100DB; private
//      Instances of this class represent the callback context for traversals of the
//      schema that compute the MAC for structures.
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
//## Persistence: Transient
//## Cardinality/Multiplicity: n



//## Uses: <unnamed>%4212EFBE011E;XMLSchema::IXmlSchemaWrapperElement { -> }
//## Uses: <unnamed>%4212F5170132;TransactionSpecification { -> }
//## Uses: <unnamed>%4212F51D03A3;TestScenario { -> }
//## Uses: <unnamed>%4212F5240077;Iteration { -> }
//## Uses: <unnamed>%4212F550013F;XMLSchema::IXmlSchemaWrapperFactory { -> }
//## Uses: <unnamed>%4213194E027E;TransactionStructure { -> }

class MacCallback : virtual public XMLSchema::IXmlSchemaWrapperTraversalCallback  //## Inherits: <unnamed>%4212D10F01A7
{
  //## begin MacCallback%4212D05100DB.initialDeclarations preserve=yes
  //## end MacCallback%4212D05100DB.initialDeclarations

  public:
    //## Constructors (specified)
      //## Operation: MacCallback%4212D08F0291
      //        The only constructor.
      MacCallback (EvaluationContext& evaluationContext, XMLSchema::IXmlSchemaWrapperByteArray &value   // The byte array that may be used to read the value of schema elements.
        // While we do not accept ownership over this object, we do assume its
        // validity for the remainder of our lifetime.
      );

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


    //## Other Operations (specified)
      //## Operation: traverseElement%4212D08F02CF
      //        Visiting the given schema element in a traversal.  Evaluate to true when the
      //        traversal is to continue, and to false otherwise.
      virtual const bool XSW_STDCALL traverseElement (XMLSchema::IXmlSchemaWrapperElement& element      // The schema element being visited.
      );

    // Additional Public Declarations
      //## begin MacCallback%4212D05100DB.public preserve=yes
      //## end MacCallback%4212D05100DB.public

  protected:
    // Additional Protected Declarations
      //## begin MacCallback%4212D05100DB.protected preserve=yes
      //## end MacCallback%4212D05100DB.protected

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

      MacCallback(const MacCallback &right);

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

    // Data Members for Class Attributes

      //## Attribute: isInMac%4212F476023C
      //        The value that inMac must have for the field to be included in the MAC.
      //## begin MacCallback::isInMac%4212F476023C.attr preserve=no  private: static AnsiString {VAC} "true"
      static const AnsiString g_isInMac;
      //## end MacCallback::isInMac%4212F476023C.attr

    // Data Members for Associations

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212ECC4032F
      //## Role: MacCallback::digest%4212ECC5036E
      //        The digest.
      //## begin MacCallback::digest%4212ECC5036E.role preserve=no  private: IMessageDigest {1 -> 1RFHAN}
      IMessageDigest *m_digest;
      //## end MacCallback::digest%4212ECC5036E.role

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212EE4301F9
      //## Role: MacCallback::value%4212EE44014D
      //        The byte array that may be used to read the value of schema elements.  While
      //        we do not accept ownership over this object, we do assume its validity for
      //        the remainder of our lifetime.
      //## begin MacCallback::value%4212EE44014D.role preserve=no  private: XMLSchema::IXmlSchemaWrapperByteArray {1 -> 1RFHAN}
      XMLSchema::IXmlSchemaWrapperByteArray *m_value;
      //## end MacCallback::value%4212EE44014D.role

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212F20600EB
      //## Role: MacCallback::string%4212F206031D
      //        The string that we use to read property values.
      //## begin MacCallback::string%4212F206031D.role preserve=no  private: XMLSchema::IXmlSchemaWrapperString {1 -> 1RFHgAN}
      XMLSchema::IXmlSchemaWrapperString *m_string;
      //## end MacCallback::string%4212F206031D.role

      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212F38B0038
      //## Role: MacCallback::evaluationContext%4212F38B01CE
      //        The context.
      //## begin MacCallback::evaluationContext%4212F38B01CE.role preserve=no  private: EvaluationContext {1 -> 1RFHAN}
      EvaluationContext *m_evaluationContext;
      //## end MacCallback::evaluationContext%4212F38B01CE.role

    // Additional Private Declarations
      //## begin MacCallback%4212D05100DB.private preserve=yes
      //## end MacCallback%4212D05100DB.private

  private: //## implementation
    // Additional Implementation Declarations
      //## begin MacCallback%4212D05100DB.implementation preserve=yes
      //## end MacCallback%4212D05100DB.implementation

};

//## begin MacCallback%4212D05100DB.postscript preserve=yes
//## end MacCallback%4212D05100DB.postscript

// Class MacCallback 

//## begin module%4212D05100DB.epilog preserve=yes
//## end module%4212D05100DB.epilog


#endif