Browse Source

I made a simple template for a class. It needs to be made into m4/bash

Cameron Weinfurt 11 months ago
parent
commit
2fd3c2f826
1 changed files with 27 additions and 0 deletions
  1. 27
    0
      template_for_class.txt

+ 27
- 0
template_for_class.txt View File

@@ -0,0 +1,27 @@
1
+// Square brackets are optional. Pipes mark mutually exclusive options.
2
+// LT/GT represents an input field.
3
+// Any text otherwise is what should be copied in.
4
+// Triple dots represent that a certain pattern should be repeated exhaustively.
5
+
6
+<public|protected|private> [abstract|final] [static] class <class name> {
7
+	[protected] [final] [static] <data type> <data member name>;
8
+	...
9
+	
10
+	public <class name>(<data type> param0, ...){
11
+		<data member name> = param0;
12
+		...
13
+	}
14
+	...
15
+
16
+	public <data type> get<data member name>() { return <data_member_name>; }
17
+	...
18
+
19
+	public void set<data member name>(<data type> x){ <data member name> = x; }
20
+	...
21
+
22
+	<public|protected|private> [static] <data type> <method name>(<data type> param0, ...){
23
+		
24
+	}
25
+	...
26
+}
27
+...

Loading…
Cancel
Save