1
0
Fork 0

OsmoVTY: Create the enum in Smalltalk, still not the best way of doing it

This commit is contained in:
Holger Hans Peter Freyther 2010-09-11 17:17:32 +08:00
parent 9ad895dc0d
commit bffccd92d0
1 changed files with 36 additions and 0 deletions

View File

@ -49,6 +49,42 @@ CStruct subclass: vty_cmd_node [
#(#cmd_vector #(#ptr #{vty_vector}))) >
]
Object subclass: NodeType [
<category: 'libosmovty'>
NodeType class >> AUTH_NODE [
^ 0
]
NodeType class >> VIEW_NODE [
^ 1
]
NodeType class >> AUTH_ENABLE_NODE [
^ 2
]
NodeType class >> ENABLE_NODE [
^ 3
]
NodeType class >> CONFIG_NODE [
^ 4
]
NodeType class >> SERVICE_NODE [
^ 5
]
NodeType class >> DEBUG_NODE [
^ 6
]
NodeType class >> VTY_NODE [
^ 7
]
]
Object subclass: OSMOVTY [
<comment: 'I provide access to the VTY code'>
<category: 'libosmovty'>