}
}
-bool WriteMap(File f, Class type, Map map, int indent, bool eCON)
+static bool WriteMap(File f, Class type, Map map, int indent, bool eCON)
{
if(map)
{
else
isFirst = false;
for(i = 0; i<indent; i++) f.Puts(" ");
- _WriteJSONObject(f, mapNodeClass, n, indent, eCON, eCON ? true : false);
+ WriteONObject(f, mapNodeClass, n, indent, eCON, eCON ? true : false);
}
f.Puts("\n");
indent--;
return true;
}
-bool WriteArray(File f, Class type, Container array, int indent, bool eCON)
+static bool WriteArray(File f, Class type, Container array, int indent, bool eCON)
{
if(array)
{
return true;
}
-bool WriteNumber(File f, Class type, DataValue value, int indent, bool eCON)
+static bool WriteNumber(File f, Class type, DataValue value, int indent, bool eCON)
{
char buffer[1024];
bool needClass = eCON;
return true;
}
-bool WriteValue(File f, Class type, DataValue value, int indent, bool eCON)
+static bool WriteValue(File f, Class type, DataValue value, int indent, bool eCON)
{
if(!strcmp(type.name, "String") || !strcmp(type.dataTypeString, "char *"))
{
}
else if(type.type == normalClass || type.type == noHeadClass || type.type == structClass)
{
- _WriteJSONObject(f, type, value.p, indent, eCON, false);
+ WriteONObject(f, type, value.p, indent, eCON, false);
}
else if(eClass_IsDerived(type, class(ColorAlpha)))
{
return true;
}
-public bool WriteJSONObject(File f, Class objectType, void * object, int indent, bool eCON)
+public bool WriteJSONObject(File f, Class objectType, void * object, int indent)
{
bool result = false;
if(object)
{
- result = _WriteJSONObject(f, objectType, object, indent, eCON, false);
+ result = WriteONObject(f, objectType, object, indent, false, false);
f.Puts("\n");
}
return result;
}
-static bool _WriteJSONObject(File f, Class objectType, void * object, int indent, bool eCON, bool omitDefaultIdentifier)
+public bool WriteECONObject(File f, Class objectType, void * object, int indent)
+{
+ bool result = false;
+ if(object)
+ {
+ result = WriteONObject(f, objectType, object, indent, true, false);
+ f.Puts("\n");
+ }
+ return result;
+}
+
+static bool WriteONObject(File f, Class objectType, void * object, int indent, bool eCON, bool omitDefaultIdentifier)
{
if(object)
{
return true;
}
-Class eSystem_SuperFindClass(const String name, Module alternativeModule)
+static Class eSystem_SuperFindClass(const String name, Module alternativeModule)
{
Class _class = eSystem_FindClass(__thisModule, name);
if(!_class && alternativeModule)
return _class;
}
-bool isSubclass(const String name, Class type)
+static bool isSubclass(const String name, Class type)
{
Class _class = eSystem_SuperFindClass(name, type.module);
if(eClass_IsDerived(_class, type))