コード例 #1
0
void Burger::LinkedListObjects::PrependObject(void *pData,Object::ProcDataDelete pDataDelete)
{
	// Create the new object
	Object *pObject = Object::New(pData,pDataDelete);
	// If successful, prepend it
	if (pObject) {
		PrependObject(pObject);
	}
}
コード例 #2
0
void Burger::LinkedListObjects::PrependObject(const char *pString)
{
	char *pStringCopy = StringDuplicate(pString);
	if (pStringCopy) {
		// Create the new object
		Object *pObject = Object::New(pStringCopy);
		// If successful, append it
		if (pObject) {
			PrependObject(pObject);
		}
	}
}
コード例 #3
0
// Prepend the given pObject> to the OMObjectVector.
AAFRESULT STDMETHODCALLTYPE ImplAAFRefArrayValue::PrependElement(
  ImplAAFPropertyValue* pPropertyValue)
{
  AAFRESULT result = AAFRESULT_SUCCESS;
  if (NULL == pPropertyValue)
    return AAFRESULT_NULL_PARAM;
    
  ImplAAFStorable * pObject = GetStorableFromPropertyValue(pPropertyValue, result);
  if (AAFRESULT_FAILED(result))
    return result;
  
  result = PrependObject(pObject); 
  return result;
}