-
Notifications
You must be signed in to change notification settings - Fork 2
/
AppUtils.cpp
32 lines (21 loc) · 852 Bytes
/
AppUtils.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//---------------------------------------------------------------------------
#pragma hdrstop
#include "AppUtils.h"
#include "CmdLineParser.h"
#include "CmdLineOptions.h"
using Anafestica::TConfigNode;
//---------------------------------------------------------------------------
#pragma package(smart_init)
namespace AppUtils {
TConfigNode& GetConfigBaseNode( TConfigNode& RootNode )
{
return CmdLineParser::WasFound( Options[static_cast<size_t>( Opt::Session )] ) ?
RootNode.GetSubNode(
CmdLineParser::GetValue( Options[static_cast<size_t>( Opt::Session )] ).c_str()
)
:
RootNode;
}
//---------------------------------------------------------------------------
} // End of namespace AppUtils
//---------------------------------------------------------------------------