Skip to content

Commit

Permalink
yet more codebase improvements #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Derrick Oswald committed May 19, 2020
1 parent 0056c64 commit 8487c47
Show file tree
Hide file tree
Showing 2 changed files with 251 additions and 178 deletions.
16 changes: 16 additions & 0 deletions CIMTool/src/main/scala/ch/ninecode/cim/tool/CodeGenerator.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
package ch.ninecode.cim.tool

import java.io.File

/**
* Interface for code generation.
*/
trait CodeGenerator
{
/**
* Make directories.
*
* @param directory the directory path to create
*/
def mkdir (directory: String): Unit =
{
val dir = new File (directory)
if (!dir.exists)
{
val _ = dir.mkdir
}
}

/**
* Generate code.
*/
Expand Down
Loading

0 comments on commit 8487c47

Please sign in to comment.