storage::GetSection

Contents

Description

Copy a storage section into a treenode

Syntax

BOOL GetSection( LPCSTR lpcszSecName, TreeNode & trNode )

Parameters

lpcszSecName
[input]name of an existing section
trNode
[output]a TreeNode to receive the data

Return

Returns TRUE on success and FALSE on failure.

Examples

EX1

//run example code in Storage::SetSection before run this code to check the result.
void storage_GetSection_ex1()
{
        Page pg = Project.Pages();
        if(pg == NULL)
           return;
        string strStorage = "Test";
        string strSection = "Params";
        Tree trTemp;
        storage st;
        st = pg.GetStorage(strStorage);
        if(st)
        {
            if(st.GetSection(strSection, trTemp))
                out_tree(trTemp);
        }
}

Remark

See Also

Storage::SetSection, Storage::DeleteSection

header to Include

origin.h