2.1.11.5 nlsf_func_to_fdf


Description

Find nlf FDF name by function name from given category's file list

Syntax

bool nlsf_func_to_fdf(const string strCategory, const string strfuncName, string & strfileName, bool bFullPath = false)

Parameters

strCategory
[input] Category name
strfuncName
[input] function name
strfileName
[output] name of file that includes function
bFullPath
[input] get full path of fdf file or not

Return

if get succese will return true, else return false.

Examples

Prior to compiling the following functions, you must run the following command via the Script or Command window:

Run.LoadOC(Originlab\nlsf_utils.c, 16);

EX

#include <Origin.h>
#include <..\originlab\nlsf_utils.h>

void nlsf_func_to_fdf_ex(string strCategory, string strfuncName)
{
	string strfileName;
	bool bFullPath = true;
	if( nlsf_func_to_fdf(strCategory, strfuncName, strfileName,  bFullPath) )
		out_str(strfileName);
}


See Also