You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
343 B
Racket
14 lines
343 B
Racket
7 years ago
|
#lang racket/base
|
||
|
(require racket/class)
|
||
|
(provide (all-defined-out))
|
||
|
|
||
|
(define RestructureBase
|
||
|
(class object%
|
||
|
(super-new)
|
||
|
(abstract decode)
|
||
|
(abstract encode)
|
||
|
(abstract size)
|
||
|
(define/public (process . args) (void))
|
||
|
(define/public (preEncode . args) (void))))
|
||
|
|
||
|
(define (RestructureBase? x) (is-a? x RestructureBase))
|