21 #ifndef ROUTINGSCHEMA_H
22 #define ROUTINGSCHEMA_H
58 #if defined( WIN32 ) && defined( _DEBUG )
59 _CrtMemState m_NextMemoryState, m_OldMemoryState;
60 bool m_OldStateAvailable;
61 #endif // WIN32 && _DEBUG
71 void LoadSchema(
const string& schemaName,
long schemaId,
const string& sessionCode );
78 string getName()
const {
return m_SchemaName; }
82 void DisplayPlan(
RoutingPlan* plan,
unsigned int level );
85 bool ApplyQueueRouting(
RoutingJob* job,
RoutingMessage* theMessage,
const long queueId,
const int userId,
const bool isBulk,
const bool fastpath =
false );
99 void PerformInitRoutine(
long schemaId );
100 void PerformTearRoutine(
long schemaId );
105 RoutingPlan* CreatePlan(
RoutingPlan* plan,
const long queue,
const long sequence,
const unsigned char depth );
108 const map< string, RoutingPlan* >&
Plans()
const {
return m_Plans; }
110 void UsePlan(
const string& name );
113 const vector< RoutingMessage >&
GetRBatchItems()
const {
return m_RBatchMessages; }
116 void setDirty(
const bool value ) { m_Dirty = value; }