The Assimilation Project  based on Assimilation version 1.1.7.1474836767
resourcecmd.c File Reference

Implements the ResourceCmd factory/parent class. More...

#include <projectcommon.h>
#include <string.h>
#include <resourcecmd.h>
#include <resourceocf.h>
#include <resourcelsb.h>
#include <resourcenagios.h>
Include dependency graph for resourcecmd.c:

Go to the source code of this file.

Macros

#define RESOURCECMD_SUBCLASS
 

Functions

FSTATIC void _resourcecmd_finalize (AssimObj *aself)
 Finalize function for ResourceCmd objects. More...
 
FSTATIC void _resourcecmd_execute (ResourceCmd *self)
 Moan and complain - abstract class. More...
 
ResourceCmdresourcecmd_new (ConfigContext *request, gpointer user_data, ResourceCmdCallback callback)
 Our ResourceCmd Factory object - constructs an object of the proper subclass for the given instantiation parameters. More...
 
ResourceCmdresourcecmd_constructor (guint structsize, ConfigContext *request, gpointer user_data, ResourceCmdCallback callback)
 Constructor (_new function) for ResourceCmd "abstract" class. More...
 

Detailed Description

Implements the ResourceCmd factory/parent class.

Detemines which subclass a particular constructor request is for, then executes the relevant subclass constructor. After that, our only involvement is in the destructor.

Author
Alan Robertson alanr.nosp@m.@uni.nosp@m.x.sh - Copyright © 2013 - Assimilation Systems Limited
This file is part of the Assimilation Project. The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/

Definition in file resourcecmd.c.

Macro Definition Documentation

#define RESOURCECMD_SUBCLASS

Definition at line 26 of file resourcecmd.c.

Variable Documentation

const char* classname

Definition at line 45 of file resourcecmd.c.

Referenced by proj_class_change_debug(), and resourcecmd_new().

ResourceCmd*(* constructor) (guint structsize, ConfigContext *request, gpointer user_data, ResourceCmdCallback callback)

Definition at line 46 of file resourcecmd.c.

Referenced by cma.store.Store::callconstructor().