Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Alexander Lapshin
common
Commits
1d146aad
Commit
1d146aad
authored
Oct 23, 2018
by
Alexander Lapshin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.ancprotek.ru/alapshin/common
.
parents
a124f8db
3578567a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
TaskInit.h
utils/TaskInit.h
+8
-0
No files found.
utils/TaskInit.h
View file @
1d146aad
...
@@ -30,6 +30,14 @@ static void InitDataA(BNOAstroBase& ab, myXML::Document& doc, bool noAtm = false
...
@@ -30,6 +30,14 @@ static void InitDataA(BNOAstroBase& ab, myXML::Document& doc, bool noAtm = false
std
::
string
configFile
;
std
::
string
configFile
;
LoadXML
(
doc
.
GetBody
().
GetRoot
(),
"Config"
,
configFile
);
LoadXML
(
doc
.
GetBody
().
GetRoot
(),
"Config"
,
configFile
);
if
(
configFile
==
"%ASTROBASE%"
)
{
const
char
*
env_astro
=
std
::
getenv
(
"ASTROBASE"
);
if
(
!
env_astro
)
{
throw
(
Exp
()
<<
"no env variable ASTROBASE found"
);
}
configFile
=
std
::
string
(
env_astro
);
}
ab
.
SetCfgFile
(
configFile
.
c_str
());
ab
.
SetCfgFile
(
configFile
.
c_str
());
if
(
ab
.
Init
(
TimeGD
(
1
,
1
,
1957
,
0
,
0
,
0
,
0
),
TimeGD
(
1
,
1
,
2500
,
0
,
0
,
0
,
0
),
noAtm
,
loadPlanets
)){
if
(
ab
.
Init
(
TimeGD
(
1
,
1
,
1957
,
0
,
0
,
0
,
0
),
TimeGD
(
1
,
1
,
2500
,
0
,
0
,
0
,
0
),
noAtm
,
loadPlanets
)){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment