nlf_get_section_keys_and_values

 

Description

Get the keys and values from sepcial section name from NLSF.ini file.

Syntax

bool nlf_get_section_keys_and_values( LPCSTR lpcszSection, vector<string> & saKeys, vector<string> & saValues = NULL, int * pnDefaultSel = NULL, int nIniPath = ORIGIN_PATH_USER, LPCSTR lpcszIniPath = NULL )

Parameters

lpcszSection
[input]section name of nlsf.ini want to read.
saKeys
[output]Section keys.
saValues
[output]Section keys value.
pnDefaultSel
[output]default function of nlsf.ini function cateogry.
nIniPath
[input] folder flag, ORIGIN_PATH_USER etc.
lpcszIniPath
[input] Path to get NLSF.ini. If lpcszIniPath is not NULL, nIniPath will be ignored.

Return

Return true if get it.

Examples

EX1

void nlf_get_section_keys_and_values_ex1()
{    
    vector<string> vsFunction, vsFile;
    bool bRet = nlf_get_section_keys_and_values( "Waveform",vsFunction, vsFile );
}

Remark

See Also

header to Included

nlsf_utils.h

Reference