-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HPCC-31143 move GlobalGlobalCodeContextExtra into cpp file
Signed-off-by: Shamser Ahmed <[email protected]>
- Loading branch information
Showing
3 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ set ( SRCS | |
rtlsize.hpp | ||
rtltype.hpp | ||
rtlbcdtest.cpp | ||
wfcontext.cpp | ||
wfcontext.hpp | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#include "platform.h" | ||
#include "wfcontext.hpp" | ||
|
||
|
||
ICodeContext * GlobalCodeContextExtra::queryCodeContext() | ||
{ | ||
return &codeContextEx; | ||
} | ||
|
||
void GlobalCodeContextExtra::fail(int code, const char *msg) | ||
{ | ||
gctx->fail(code, msg); | ||
} | ||
|
||
bool GlobalCodeContextExtra::isResult(const char * name, unsigned sequence) | ||
{ | ||
return gctx->isResult(name, sequence); | ||
} | ||
|
||
unsigned GlobalCodeContextExtra::getWorkflowIdDeprecated() | ||
{ | ||
return gctx->getWorkflowIdDeprecated(); | ||
} | ||
|
||
void GlobalCodeContextExtra::doNotify(char const * name, char const * text) | ||
{ | ||
gctx->doNotify(name, text); | ||
} | ||
|
||
int GlobalCodeContextExtra::queryLastFailCode() | ||
{ | ||
return gctx->queryLastFailCode(); | ||
} | ||
|
||
void GlobalCodeContextExtra::getLastFailMessage(size32_t & outLen, char * & outStr, const char * tag) | ||
{ | ||
gctx->getLastFailMessage(outLen, outStr, tag); | ||
} | ||
|
||
bool GlobalCodeContextExtra::fileExists(const char * filename) | ||
{ | ||
return gctx->fileExists(filename); | ||
} | ||
|
||
void GlobalCodeContextExtra::deleteFile(const char * logicalName) | ||
{ | ||
gctx->deleteFile(logicalName); | ||
} | ||
|
||
void GlobalCodeContextExtra::selectCluster(const char * cluster) | ||
{ | ||
gctx->selectCluster(cluster); | ||
} | ||
|
||
void GlobalCodeContextExtra::restoreCluster() | ||
{ | ||
gctx->restoreCluster(); | ||
} | ||
|
||
void GlobalCodeContextExtra::setWorkflowCondition(bool value) | ||
{ | ||
gctx->setWorkflowCondition(value); | ||
} | ||
|
||
void GlobalCodeContextExtra::returnPersistVersion(const char * logicalName, unsigned eclCRC, unsigned __int64 allCRC, bool isFile) | ||
{ | ||
gctx->returnPersistVersion(logicalName, eclCRC, allCRC, isFile); | ||
} | ||
|
||
void GlobalCodeContextExtra::setResultDataset(const char * name, unsigned sequence, size32_t len, const void *val, unsigned numRows, bool extend) | ||
{ | ||
gctx->setResultDataset(name, sequence, len, val, numRows, extend); | ||
} | ||
|
||
void GlobalCodeContextExtra::getEventName(size32_t & outLen, char * & outStr) | ||
{ | ||
gctx->getEventName(outLen, outStr); | ||
} | ||
|
||
void GlobalCodeContextExtra::getEventExtra(size32_t & outLen, char * & outStr, const char * tag) | ||
{ | ||
gctx->getEventExtra(outLen, outStr, tag); | ||
} | ||
|
||
void GlobalCodeContextExtra::doNotify(char const * name, char const * text, const char * target) | ||
{ | ||
gctx->doNotify(name, text, target); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters