]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graphfile/scl/Simantics/GraphFile.scl
SCL API for GraphFile plug-in.
[simantics/platform.git] / bundles / org.simantics.graphfile / scl / Simantics / GraphFile.scl
diff --git a/bundles/org.simantics.graphfile/scl/Simantics/GraphFile.scl b/bundles/org.simantics.graphfile/scl/Simantics/GraphFile.scl
new file mode 100644 (file)
index 0000000..dd28870
--- /dev/null
@@ -0,0 +1,41 @@
+import "Simantics/DB"
+import "File"
+
+    
+importJava "org.simantics.graphfile.util.GraphFileUtil" where
+    "Writes contents of a file to DB, including the timestamp"
+    @JavaName writeDataToGraphSCLhack
+    writeDataToGraph:: File -> Resource -> <WriteGraph>()
+    
+    "Writes contents of a byte array to DB"
+    @JavaName writeDataToGraph
+    writeDataToGraphBytes:: ByteArray -> Resource -> <WriteGraph>()
+    
+    "Creates a temp file of a GraphFile resource"
+    @JavaName toTempFileSCLhack
+    toTempFile :: Resource -> <ReadGraph> File
+    
+    "Writes contents of a GraphFile into a regular File"
+    @JavaName writeDataToFileSCLhack
+    writeDataToFile :: Resource -> File -> <ReadGraph>()
+    
+    "Writes contents of a file to DB, including the filename and timestamp"
+    @JavaName toGraphSCLhack
+    toGraphWithPath :: String -> Resource -> <WriteGraph>()
+    
+    "Writes contents of a file to DB, including the filename and timestamp"
+    @JavaName toGraph
+    toGraph :: File -> Resource -> <WriteGraph>()
+    
+    "Returns contents of a GraphFile as a byte array"
+    @JavaName getData
+    getData :: Resource -> <ReadGraph> ByteArray
+    
+    "Returns contents of a GraphFile as a String"
+    @JavaName getDataAsString
+    getDataAsString :: Resource -> <ReadGraph> String
+    
+    
+    
+    
+    
\ No newline at end of file