Skip to content

Commit

Permalink
Unified Setup method, added DSWMap.Utils for mass setup. Introduced d…
Browse files Browse the repository at this point in the history
…ev.mac for project utils.
  • Loading branch information
evshvarov committed Jun 17, 2017
1 parent 65abfb8 commit cb1e860
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS*
2 changes: 1 addition & 1 deletion src/cls/CZ/Utils.cls
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class CZ.Utils
{

ClassMethod setup()
ClassMethod Setup()
{
do ..Populate()
do ##class(%DeepSee.Utils).%BuildCube("CZCube")
Expand Down
11 changes: 11 additions & 0 deletions src/cls/DSWMap/Utils.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Class DSWMap.Utils {

ClassMethod SetupAll() {

for map="CZ","FIN","RSA","SE","RF.SAKH","USA" {
do $CLASSMETHOD(map_".Utils", "Setup")
}

}

}
2 changes: 1 addition & 1 deletion src/cls/RSA/Utils.cls
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class RSA.Utils
{

ClassMethod setup()
ClassMethod Setup()
{
do ..Populate()
do ##class(%DeepSee.Utils).%BuildCube("RSACube")
Expand Down
2 changes: 1 addition & 1 deletion src/cls/SE/Utils.cls
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class SE.Utils
{

ClassMethod setup()
ClassMethod Setup()
{
do ..Populate()
do ##class(%DeepSee.Utils).%BuildCube("SECube")
Expand Down
3 changes: 2 additions & 1 deletion src/cls/USA/Utils.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Class USA.Utils
{

/// init everything
ClassMethod Init()

ClassMethod Setup()
{
do ..Populate()
do ##class(USA.Elections).%BuildIndices()
Expand Down
3 changes: 3 additions & 0 deletions src/dev.mac
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// classes release export
s list="CZ*.CLS,FIN*.CLS,RF*.CLS,RSA*.CLS,SE*.CLS,USA*.CLS,World*.CLS,*.DFI"
D $System.OBJ.Export(list,"dsw-map-release"_$tr($zd($h,3),"-","")_".xml")

0 comments on commit cb1e860

Please sign in to comment.