Subversion Repositories DevTools

Rev

Rev 2269 | Blame | Compare with Previous | 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%42116B3700AD.cm preserve=no
//## end module%42116B3700AD.cm

//## begin module%42116B3700AD.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%42116B3700AD.cp

//## Module: EvaluationContext%42116B3700AD; Pseudo Package body
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\EvaluationContext.cpp

//## begin module%42116B3700AD.additionalIncludes preserve=no
//## end module%42116B3700AD.additionalIncludes

//## begin module%42116B3700AD.includes preserve=yes
//## end module%42116B3700AD.includes

// DefinedVariableTable
#include "DefinedVariableTable.h"
// SequenceCollection
#include "SequenceCollection.h"
// TimeEstimate
#include "TimeEstimate.h"
// ProgressBar
#include "ProgressBar.h"
// IXmlSchemaWrapperElement
#include "IXmlSchemaWrapperElement.h"
// TransactionSpecification
#include "TransactionSpecification.h"
// EvaluationContext
#include "EvaluationContext.h"
// IHash
#include "IHash.h"
// ICryptographicServerProxy
#include "ICryptographicServerProxy.h"
// IMessageDigest
#include "IMessageDigest.h"
//## begin module%42116B3700AD.additionalDeclarations preserve=yes
//## end module%42116B3700AD.additionalDeclarations


// Class EvaluationContext 

//## Operation: EvaluationContext%42116FD901D9
EvaluationContext::EvaluationContext (DefinedVariableTable& symbolTable, SequenceCollection& sequences, ProgressBar& progressBar, IMessageDigest* messageDigest, IHash *hash, ICryptographicServerProxy* cryptographicServer, TimeEstimate& timeEstimate)
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.hasinit preserve=no
          : m_scenarioIndex(0),
                m_transaction(0),
                m_symbolTable(0),
                m_progressBar(0),
                m_sequences(0),
                m_estimate(0),
                m_digest(0),
                m_schemaElement(0),
                m_cryptographicServer(0),
                m_hash(0)
  //## end EvaluationContext::EvaluationContext%42116FD901D9.hasinit
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.initialization preserve=yes
  //## end EvaluationContext::EvaluationContext%42116FD901D9.initialization
{
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.body preserve=yes

        m_cryptographicServer   = cryptographicServer;
        m_digest                                = messageDigest;
        m_estimate                              = &timeEstimate;
        m_hash                                  = hash;
        m_symbolTable                   = &symbolTable;
        m_progressBar                   = &progressBar;
        m_sequences                             = &sequences;

  //## end EvaluationContext::EvaluationContext%42116FD901D9.body
}


EvaluationContext::~EvaluationContext()
{
  //## begin EvaluationContext::~EvaluationContext%42116B3700AD_dest.body preserve=yes

        m_transaction                   = 0;    // We don't own this.
        m_symbolTable                   = 0;    // We don't own this.
        m_schemaElement                 = 0;    // We don't own this.
        m_progressBar                   = 0;    // We don't own this.
        m_hash                                  = 0;    // We don't own this.
        m_estimate                              = 0;    // We don't own this.
        m_digest                                = 0;    // We don't own this.
        m_cryptographicServer   = 0;    // We don't own this.

  //## end EvaluationContext::~EvaluationContext%42116B3700AD_dest.body
}



//## Other Operations (implementation)
//## Operation: getCryptographicServer%422EAADF0074
ICryptographicServerProxy& EvaluationContext::getCryptographicServer ()
{
  //## begin EvaluationContext::getCryptographicServer%422EAADF0074.body preserve=yes

        return ( *m_cryptographicServer );

  //## end EvaluationContext::getCryptographicServer%422EAADF0074.body
}

//## Operation: getHash%4288378902B6
IHash & EvaluationContext::getHash ()
{
  //## begin EvaluationContext::getHash%4288378902B6.body preserve=yes

        return ( *m_hash );

  //## end EvaluationContext::getHash%4288378902B6.body
}

//## Operation: getMessageDigest%4211C6C901B5
IMessageDigest& EvaluationContext::getMessageDigest ()
{
  //## begin EvaluationContext::getMessageDigest%4211C6C901B5.body preserve=yes

        return ( *m_digest );

  //## end EvaluationContext::getMessageDigest%4211C6C901B5.body
}

//## Operation: getProgressBar%42116CAA0204
ProgressBar& EvaluationContext::getProgressBar ()
{
  //## begin EvaluationContext::getProgressBar%42116CAA0204.body preserve=yes

        return ( *m_progressBar );

  //## end EvaluationContext::getProgressBar%42116CAA0204.body
}

//## Operation: getScenarioIndex%4236AD17026A
const unsigned & EvaluationContext::getScenarioIndex () const
{
  //## begin EvaluationContext::getScenarioIndex%4236AD17026A.body preserve=yes

        return ( m_scenarioIndex );

  //## end EvaluationContext::getScenarioIndex%4236AD17026A.body
}

//## Operation: getSchemaElement%4212D7B702C1
XMLSchema::IXmlSchemaWrapperElement & EvaluationContext::getSchemaElement ()
{
  //## begin EvaluationContext::getSchemaElement%4212D7B702C1.body preserve=yes

        return ( *m_schemaElement );

  //## end EvaluationContext::getSchemaElement%4212D7B702C1.body
}

//## Operation: getSequenceCollection%421170BF0053
SequenceCollection& EvaluationContext::getSequenceCollection ()
{
  //## begin EvaluationContext::getSequenceCollection%421170BF0053.body preserve=yes

        return ( *m_sequences );

  //## end EvaluationContext::getSequenceCollection%421170BF0053.body
}

//## Operation: getSymbolTable%42116CA901D6
DefinedVariableTable& EvaluationContext::getSymbolTable ()
{
  //## begin EvaluationContext::getSymbolTable%42116CA901D6.body preserve=yes

        return ( *m_symbolTable );

  //## end EvaluationContext::getSymbolTable%42116CA901D6.body
}

//## Operation: getTimeEstimate%4211D01E02E6
TimeEstimate& EvaluationContext::getTimeEstimate ()
{
  //## begin EvaluationContext::getTimeEstimate%4211D01E02E6.body preserve=yes

        return ( *m_estimate );  

  //## end EvaluationContext::getTimeEstimate%4211D01E02E6.body
}

//## Operation: getTransaction%42116C8703D9
TransactionSpecification& EvaluationContext::getTransaction ()
{
  //## begin EvaluationContext::getTransaction%42116C8703D9.body preserve=yes

        return ( *m_transaction );

  //## end EvaluationContext::getTransaction%42116C8703D9.body
}

//## Operation: haveCryptographicServer%422EAADF00B2
const bool EvaluationContext::haveCryptographicServer () const
{
  //## begin EvaluationContext::haveCryptographicServer%422EAADF00B2.body preserve=yes

        return ( m_cryptographicServer != 0 );

  //## end EvaluationContext::haveCryptographicServer%422EAADF00B2.body
}

//## Operation: haveHash%4288378902F4
const bool EvaluationContext::haveHash () const
{
  //## begin EvaluationContext::haveHash%4288378902F4.body preserve=yes

        return ( m_hash != 0 );

  //## end EvaluationContext::haveHash%4288378902F4.body
}

//## Operation: haveMessageDigest%4211C6ED01C4
const bool EvaluationContext::haveMessageDigest () const
{
  //## begin EvaluationContext::haveMessageDigest%4211C6ED01C4.body preserve=yes

        return ( m_digest != 0 );

  //## end EvaluationContext::haveMessageDigest%4211C6ED01C4.body
}

//## Operation: haveProgressBar%42116E850298
const bool EvaluationContext::haveProgressBar () const
{
  //## begin EvaluationContext::haveProgressBar%42116E850298.body preserve=yes

        return ( m_progressBar != 0 );

  //## end EvaluationContext::haveProgressBar%42116E850298.body
}

//## Operation: haveSchemaElement%4212D7B702FF
const bool EvaluationContext::haveSchemaElement () const
{
  //## begin EvaluationContext::haveSchemaElement%4212D7B702FF.body preserve=yes

        return ( m_schemaElement != 0 );

  //## end EvaluationContext::haveSchemaElement%4212D7B702FF.body
}

//## Operation: haveSequenceCollection%421170BF0081
const bool EvaluationContext::haveSequenceCollection () const
{
  //## begin EvaluationContext::haveSequenceCollection%421170BF0081.body preserve=yes

        return ( m_sequences != 0 );

  //## end EvaluationContext::haveSequenceCollection%421170BF0081.body
}

//## Operation: haveSymbolTable%42116E8502B8
const bool EvaluationContext::haveSymbolTable () const
{
  //## begin EvaluationContext::haveSymbolTable%42116E8502B8.body preserve=yes

        return ( m_symbolTable != 0 );

  //## end EvaluationContext::haveSymbolTable%42116E8502B8.body
}

//## Operation: haveTransaction%42116E8502D7
const bool EvaluationContext::haveTransaction ()
{
  //## begin EvaluationContext::haveTransaction%42116E8502D7.body preserve=yes

        return ( m_transaction != 0 );

  //## end EvaluationContext::haveTransaction%42116E8502D7.body
}

//## Operation: setProgressBar%42116CAA01E5
void EvaluationContext::setProgressBar (ProgressBar& progressBar)
{
  //## begin EvaluationContext::setProgressBar%42116CAA01E5.body preserve=yes

        m_progressBar = &progressBar;

  //## end EvaluationContext::setProgressBar%42116CAA01E5.body
}

//## Operation: setScenarioIndex%4236AD170299
void EvaluationContext::setScenarioIndex (const unsigned &value)
{
  //## begin EvaluationContext::setScenarioIndex%4236AD170299.body preserve=yes

        m_scenarioIndex = value;

  //## end EvaluationContext::setScenarioIndex%4236AD170299.body
}

//## Operation: setSchemaElement%4212D7B7031F
void EvaluationContext::setSchemaElement (XMLSchema::IXmlSchemaWrapperElement &schemaElement)
{
  //## begin EvaluationContext::setSchemaElement%4212D7B7031F.body preserve=yes

        m_schemaElement = &schemaElement;

  //## end EvaluationContext::setSchemaElement%4212D7B7031F.body
}

//## Operation: setSequenceCollection%421170BF0091
void EvaluationContext::setSequenceCollection (SequenceCollection& sequenceCollection)
{
  //## begin EvaluationContext::setSequenceCollection%421170BF0091.body preserve=yes

        m_sequences = &sequenceCollection;

  //## end EvaluationContext::setSequenceCollection%421170BF0091.body
}

//## Operation: setSymbolTable%42116CA901B6
void EvaluationContext::setSymbolTable (DefinedVariableTable& symbolTable)
{
  //## begin EvaluationContext::setSymbolTable%42116CA901B6.body preserve=yes

        m_symbolTable = &symbolTable;

  //## end EvaluationContext::setSymbolTable%42116CA901B6.body
}

//## Operation: setTransaction%42116C60036C
void EvaluationContext::setTransaction (TransactionSpecification& transaction)
{
  //## begin EvaluationContext::setTransaction%42116C60036C.body preserve=yes

        m_transaction = &transaction;

  //## end EvaluationContext::setTransaction%42116C60036C.body
}

// Additional Declarations
  //## begin EvaluationContext%42116B3700AD.declarations preserve=yes
const std::string & EvaluationContext::getStartTime ( ) const
{
   return(m_shiftStartTime);
} 
void EvaluationContext::setStartTime (const std::string &startTime      )
{
    m_shiftStartTime = startTime;
}

const std::string & EvaluationContext::getDeviceId ( ) const
{
   return(m_deviceId);
} 
void EvaluationContext::setDeviceId (const std::string &deviceId        )
{
    m_deviceId = deviceId;
}

const std::string & EvaluationContext::getCsn ( ) const
{
   return(m_csn);
} 
void EvaluationContext::setCsn (const std::string &csn  )
{
    m_csn = csn;
}
  //## end EvaluationContext%42116B3700AD.declarations

//## begin module%42116B3700AD.epilog preserve=yes
//## end module%42116B3700AD.epilog