예제 #1
0
SetVC* SetVC_New(
	Name									name,
	AbstractContext*					context,
	Name									_dictionaryEntryName, 
	Variable_Register*				variable_Register, 
	ConditionFunction_Register*	conFunc_Register,
	Dictionary*							dictionary )
{
	SetVC* self = _SetVC_DefaultNew( name );

	self->isConstructed = True;
	_VariableCondition_Init( self, context, variable_Register, conFunc_Register, dictionary );
	_SetVC_Init( self,  _dictionaryEntryName );

	return self;
}
예제 #2
0
파일: SetVC.c 프로젝트: bmi-forum/bmi-pyre
void SetVC_Init(
		SetVC*						self,
		Name						name,
		Name						_dictionaryEntryName, 
		Variable_Register*				variable_Register, 
		ConditionFunction_Register*			conFunc_Register,
		Dictionary*					dictionary )
{
	/* General info */
	self->type = SetVC_Type;
	self->_sizeOfSelf = sizeof(SetVC);
	self->_deleteSelf = False;
	
	/* Virtual info */
	self->_delete = _SetVC_Delete;
	self->_print = _SetVC_Print;
	self->_copy = _SetVC_Copy;
	self->_build = _VariableCondition_Build;
	self->_initialise = _VariableCondition_Initialise;
	self->_execute = _VariableCondition_Execute;
	self->_buildSelf = NULL;
	self->_printConcise = _SetVC_PrintConcise;
	self->_readDictionary = _SetVC_ReadDictionary;
	self->_getSet = _SetVC_GetSet;
	self->_getVariableCount = _SetVC_GetVariableCount;
	self->_getVariableIndex = _SetVC_GetVariableIndex;
	self->_getValueIndex = _SetVC_GetValueIndex;
	self->_getValueCount = _SetVC_GetValueCount;
	self->_getValue = _SetVC_GetValue;
	
	_Stg_Class_Init( (Stg_Class*)self );
	_Stg_Object_Init( (Stg_Object*)self, name, NON_GLOBAL );
	_Stg_Component_Init( (Stg_Component*)self );
	_VariableCondition_Init( (VariableCondition*)self, variable_Register, conFunc_Register, dictionary );
	
	
	/* Stg_Class info */
	_SetVC_Init( self,  _dictionaryEntryName );
}
예제 #3
0
파일: SetVC.c 프로젝트: bmi-forum/bmi-pyre
SetVC* _SetVC_New( 
		SizeT						_sizeOfSelf, 
		Type						type,
		Stg_Class_DeleteFunction*				_delete,
		Stg_Class_PrintFunction*				_print,
		Stg_Class_CopyFunction*				_copy, 
		Stg_Component_DefaultConstructorFunction*	_defaultConstructor,
		Stg_Component_ConstructFunction*		_construct,
		Stg_Component_BuildFunction*			_build,
		Stg_Component_InitialiseFunction*			_initialise,
		Stg_Component_ExecuteFunction*			_execute,
		Stg_Component_DestroyFunction*		_destroy,
		Name							name,
		Bool							initFlag,
		VariableCondition_BuildSelfFunc*		_buildSelf, 
		VariableCondition_PrintConciseFunc*		_printConcise,
		VariableCondition_ReadDictionaryFunc*		_readDictionary,
		VariableCondition_GetSetFunc*			_getSet,
		VariableCondition_GetVariableCountFunc*		_getVariableCount,
		VariableCondition_GetVariableIndexFunc*		_getVariableIndex,
		VariableCondition_GetValueIndexFunc*		_getValueIndex,
		VariableCondition_GetValueCountFunc*		_getValueCount,
		VariableCondition_GetValueFunc*			_getValue,
		Name						_dictionaryEntryName, 
		Variable_Register*				variable_Register, 
		ConditionFunction_Register*			conFunc_Register,
		Dictionary*					dictionary )
{
	SetVC*	self;
	
	/* Allocate memory/General info */
	assert(_sizeOfSelf >= sizeof(SetVC));
	self = (SetVC*)_VariableCondition_New(
		_sizeOfSelf, 
		type, 
		_delete, 
		_print, 
		_copy, 
		_defaultConstructor,
		_construct,
		_build,
		_initialise,
		_execute,
		_destroy,
		name,
		initFlag,
		_buildSelf, 
		_printConcise,
		_readDictionary,
		_getSet, 
		_getVariableCount, 
		_getVariableIndex, 
		_getValueIndex, 
		_getValueCount, 
		_getValue,
		variable_Register, 
		conFunc_Register,
		dictionary );
	
	/* Virtual info */
	
	/* Stg_Class info */
	if( initFlag ){
		_SetVC_Init( self, _dictionaryEntryName );
	}
	
	return self;
}