Skip to content

Instantly share code, notes, and snippets.


Ben Spead isc-bspead

View GitHub Profile
isc-bspead / HandlingEnvironments.xml
Created Apr 25, 2018
Handling Many Caché Environments
View HandlingEnvironments.xml
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2014.1 (Build 602U)" ts="2014-03-17 10:14:13">
<Class name="CCR.Environment">
An Environment is defined as a single instance of an InterSystems product, and all associated hardware and software supporting that instance; 4 environments make up a System</Description>
<Property name="HomePageLink">
isc-bspead / cosJSON.isc
Last active Dec 21, 2016
Macros for writing forward compatible JSON code in InterSystems Caché 2016.1
View cosJSON.isc
#include %occReference
#if $$$comClassDefined("%Library.Object")
#define jsonClassIsLatestVersion $classIsLatestVersion
//usage: obj.$$$jsonClassIsLatestVersion()
#define jsonExtends $extends
//usage: {}.$$$jsonExtends(classname)
#define jsonFromJSON $fromJSON
//usage: {}.$$$jsonFromJSON(string)
#define jsonGetIterator $getIterator
//usage: obj.$$$jsonGetIterator()