-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution.vb
More file actions
45 lines (36 loc) · 1.5 KB
/
Solution.vb
File metadata and controls
45 lines (36 loc) · 1.5 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Imports System.Text
Imports Microsoft.VisualBasic.ComponentModel
Imports Microsoft.VisualBasic.Net.Protocols.ContentTypes
Imports Microsoft.VisualBasic.Text
Imports SMRUCC.Rsharp.Development
Imports SMRUCC.Rsharp.Development.Package.File
Public Class Solution
Implements ISaveHandle
Implements IFileReference
Public Property FilePath As String Implements IFileReference.FilePath
Public ReadOnly Property MimeType As ContentType() Implements IFileReference.MimeType
Get
Throw New NotImplementedException()
End Get
End Property
Public ReadOnly Property ProjectFolder As String
Get
Return FilePath.ParentPath
End Get
End Property
Public Function LoadInformation() As DESCRIPTION
Return Package.File.DESCRIPTION.Parse($"{FilePath.ParentPath}/DESCRIPTION")
End Function
Public Shared Function LoadRproj(file As String) As Solution
Return New Solution With {.FilePath = file}
End Function
Public Function Save(path As String, encoding As Encoding) As Boolean Implements ISaveHandle.Save
Throw New NotImplementedException()
End Function
Public Function Save(path As String, Optional encoding As Encodings = Encodings.UTF8) As Boolean Implements ISaveHandle.Save
Throw New NotImplementedException()
End Function
Public Function Save(file As IO.Stream, encoding As Encoding) As Boolean Implements ISaveHandle.Save
Throw New NotImplementedException()
End Function
End Class