model_server/project/src/proj_restore.cxx
// returns:   0 - lbuf does not start with PROJ_ADMINDIR_TAG
//            1 - model_admindir is already set
//            2 - succeeded to set model_admindir
lbuf does not start with PROJ_ADMINDIR_TAG
1 - model_admindir is already set
2 - succeeded to set model_admindir
lbuf does not start with PROJ_ADMINDIR_TAG 1 - model_admindir is already set 2 - succeeded to set model_admindir
int proj_set_model_admindir (const char *ln)
{
    static int size = strlen(PROJ_ADMINDIR_TAG);
    int res = (strncmp(PROJ_ADMINDIR_TAG, ln, size) == 0) ? 1 : 0;
    if (res && ! model_admindir.length()) {
	model_admindir = ln + strlen(PROJ_ADMINDIR_TAG);
	model_admindir.trim();
	res = 2;
    }
    return res;
}
int proj_set_model_admindir ( const char * ln ) { static int size = strlen ( PROJ_ADMINDIR_TAG ) ; int res = ( strncmp ( PROJ_ADMINDIR_TAG , ln , size ) == 0 ) ? 1 : 0 ; if ( res && ! model_admindir . length ( ) ) { model_admindir = ln + strlen ( PROJ_ADMINDIR_TAG ) ; model_admindir . trim ( ) ; res = 2 ; } return res ; }
returns:   0 - lbuf does not start with PROJ_ADMINDIR_TAG
1 - model_admindir is already set
2 - succeeded to set model_admindir
returns : 0 - lbuf does not start with PROJ_ADMINDIR_TAG 1 - model_admindir is already set 2 - succeeded to set model_admindir