Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2263 kivins 1
//## begin module%1.7%.codegen_version preserve=yes
2
//   Read the documentation to learn more about C++ code generator
3
//   versioning.
4
//## end module%1.7%.codegen_version
5
 
6
//## begin module%4211B6910076.cm preserve=no
7
//## end module%4211B6910076.cm
8
 
9
//## begin module%4211B6910076.cp preserve=no
10
//	C O P Y R I G H T   N O T I C E
11
//	This material is confidential to ERG and may not be disclosed in whole
12
//	or in part to any third party nor used in any manner whatsoever other
13
//	than for the purposes expressly consented to by ERG in writing.
14
//
15
//	This material is also copyright and may not be reproduced, stored in a
16
//	retrieval system or transmitted in any form or by any means in whole or
17
//	in part without the express written consent of ERG.
18
//## end module%4211B6910076.cp
19
 
20
//## Module: EvaluationCallback%4211B6910076; Pseudo Package body
21
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
22
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\EvaluationCallback.cpp
23
 
24
//## begin module%4211B6910076.additionalIncludes preserve=no
25
//## end module%4211B6910076.additionalIncludes
26
 
27
//## begin module%4211B6910076.includes preserve=yes
28
//## end module%4211B6910076.includes
29
 
30
// IXmlSchemaWrapperElement
31
#include "IXmlSchemaWrapperElement.h"
32
// TransactionSpecification
33
#include "TransactionSpecification.h"
34
// EvaluationCallback
35
#include "EvaluationCallback.h"
36
// EvaluationContext
37
#include "EvaluationContext.h"
38
//## begin module%4211B6910076.additionalDeclarations preserve=yes
39
//## end module%4211B6910076.additionalDeclarations
40
 
41
 
42
// Class EvaluationCallback 
43
 
44
//## Operation: EvaluationCallback%4211B76503A2
45
EvaluationCallback::EvaluationCallback (TransactionSpecification& transaction, EvaluationContext& context)
46
  //## begin EvaluationCallback::EvaluationCallback%4211B76503A2.hasinit preserve=no
47
      : m_transaction(&transaction),
48
        m_context(&context)
49
  //## end EvaluationCallback::EvaluationCallback%4211B76503A2.hasinit
50
  //## begin EvaluationCallback::EvaluationCallback%4211B76503A2.initialization preserve=yes
51
  //## end EvaluationCallback::EvaluationCallback%4211B76503A2.initialization
52
{
53
  //## begin EvaluationCallback::EvaluationCallback%4211B76503A2.body preserve=yes
54
  //## end EvaluationCallback::EvaluationCallback%4211B76503A2.body
55
}
56
 
57
 
58
EvaluationCallback::~EvaluationCallback()
59
{
60
  //## begin EvaluationCallback::~EvaluationCallback%4211B6910076_dest.body preserve=yes
61
 
62
	m_transaction = 0;	// We don't own this.
63
	m_context = 0;		// We don't own this.
64
 
65
  //## end EvaluationCallback::~EvaluationCallback%4211B6910076_dest.body
66
}
67
 
68
 
69
 
70
//## Other Operations (implementation)
71
//## Operation: traverseElement%4211B6B80131
72
const bool XSW_STDCALL EvaluationCallback::traverseElement (XMLSchema::IXmlSchemaWrapperElement& element)
73
{
74
  //## begin EvaluationCallback::traverseElement%4211B6B80131.body preserve=yes
75
 
76
	m_context->setSchemaElement( element );
77
 
78
	return ( m_transaction->evaluate( element, *m_context ) );
79
 
80
  //## end EvaluationCallback::traverseElement%4211B6B80131.body
81
}
82
 
83
// Additional Declarations
84
  //## begin EvaluationCallback%4211B6910076.declarations preserve=yes
85
  //## end EvaluationCallback%4211B6910076.declarations
86
 
87
//## begin module%4211B6910076.epilog preserve=yes
88
//## end module%4211B6910076.epilog