nslf_get_func_list

 

Description

Load a functions list from certain Category

Syntax

bool nslf_get_func_list( vector<string> & vsFuncNames, vector<string> & vsFileNames, string strCategory )

Parameters

vsFuncNames
[output] vector of functions' name
vsFileNames
[output] vector of files that includes function
strCategory
[input] Category name

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);

EX1

#include <..\originlab\nlsf_utils.h>
void nslf_get_func_list_ex1(TreeNode& trNode)
{
    string strFuncList;
    vector<string> vsFunc;
    vector<string> vsFuncFileNames;

    if(nslf_get_func_list(vsFunc, vsFuncFileNames, "Baseline"))
    {
        strFuncList.SetTokens(vsFunc, '|');        
        trNode.SetAttribute(STR_COMBO_ATTRIB, strFuncList);
    }        
}

Remark

See Also

header to Included

nlsf_utils.h

Reference