model_server/obj/src/app_get_header.cxx
// Returns header given app type and name
//
// static class function
Returns header given app type and name
static class function
Returns header given app type and name static class function
appPtr app::get_header(appType type, char const *name)
{
    Initialize(app::get_header);
    Obj* al = get_app_list();
    if (name != NULL)
    {
	Obj* el;
	ForEach(el, *al)
	{
	    appPtr ap = checked_cast(app,el);
	    if(type == ap->get_type())
	    {
		char const *app_name = ap->get_name();
		if(app_name && !strcmp(app_name, name))
		    ReturnValue(ap);
	    }
	}
    }
    ReturnValue(NULL);
}
appPtr app :: get_header ( appType type , char const * name ) { Initialize ( app :: get_header ) ; Obj * al = get_app_list ( ) ; if ( name != NULL ) { Obj * el ; ForEach ( el , * al ) { appPtr ap = checked_cast ( app , el ) ; if ( type == ap -> get_type ( ) ) { char const * app_name = ap -> get_name ( ) ; if ( app_name && ! strcmp ( app_name , name ) ) ReturnValue ( ap ) ; } } } ReturnValue ( NULL ) ; }
Returns header given app type and name
static class function
Returns header given app type and name static class function