Ejemplo n.º 1
0
void CJSONValue::Insert (const CJSONValue &Source)

//	Insert
//
//	Appends to the end of an array

	{
	ASSERT(m_iType == typeArray);
	ArrayType *pArray = (ArrayType *)m_pValue;

	pArray->Insert(Source);
	}
Ejemplo n.º 2
0
void CJSONValue::InsertHandoff (CJSONValue &Source)

//	InsertHandoff
//
//	Appends to the end of an array

	{
	ASSERT(m_iType == typeArray);
	ArrayType *pArray = (ArrayType *)m_pValue;

	CJSONValue *pNewValue = pArray->Insert();
	pNewValue->TakeHandoff(Source);
	}