Skip to content

Instantly share code, notes, and snippets.

View isc-bspead's full-sized avatar

Ben Spead isc-bspead

  • InterSystems
View GitHub Profile
@isc-bspead
isc-bspead / HandlingEnvironments.xml
Created April 25, 2018 13:52
Handling Many Caché Environments
<?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">
<Description>
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>
<Super>%SerialObject</Super>
<TimeChanged>63262,54472.371963</TimeChanged>
<TimeCreated>61614,74776.418106</TimeCreated>
<Property name="HomePageLink">
@isc-bspead
isc-bspead / cosJSON.isc
Last active December 21, 2016 08:00
Macros for writing forward compatible JSON code in InterSystems Caché 2016.1
#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()