void MeParams::setParam(const char* name,char* n){
	double v = strtod(n,NULL);
	deleteParam(name);
	if(v==NULL){
		addItemToObject(name, createCharItem(n));
	}else{
		addItemToObject(name, createItem(v));
	}
}
Beispiel #2
0
void
aJsonClass::addItemReferenceToObject(aJsonObject *object, const char *string,
    aJsonObject *item)
{
  addItemToObject(object, string, createReference(item));
}
Beispiel #3
0
void
aJsonClass::addStringToObject(aJsonObject* object, const char* name,
    const char* s)
{
  addItemToObject(object, name, createItem(s));
}
Beispiel #4
0
void
aJsonClass::addNumberToObject(aJsonObject* object, const char* name, double n)
{
  addItemToObject(object, name, createItem(n));
}
Beispiel #5
0
void
aJsonClass::addFalseToObject(aJsonObject* object, const char* name)
{
  addItemToObject(object, name, createFalse());
}
Beispiel #6
0
void
aJsonClass::addNullToObject(aJsonObject* object, const char* name)
{
  addItemToObject(object, name, createNull());
}
Beispiel #7
0
void
aJsonClass::addBooleanToObject(aJsonObject* object, const char* name, bool b)
{
  addItemToObject(object, name, (b ? createTrue() : createFalse()));
}
Beispiel #8
0
void
aJsonClass::addBooleanToObject(aJsonObject* object, const char* name, bool b)
{
  addItemToObject(object, name, createItem(b));
}