Add ListSchema class

Return it whenever the appropriate Type is converted to a Schema
This commit is contained in:
Jason Paryani
2014-11-19 02:04:57 -08:00
parent 2565db3500
commit 0f0ced971d
4 changed files with 54 additions and 16 deletions

View File

@@ -140,10 +140,10 @@ cdef extern from "capnp/schema.h" namespace " ::capnp":
cbool isStruct()
cbool isInterface()
StructSchema asStruct()
EnumSchema asEnum()
InterfaceSchema asInterface()
# ListSchema asList()
StructSchema asStruct() except +reraise_kj_exception
EnumSchema asEnum() except +reraise_kj_exception
InterfaceSchema asInterface() except +reraise_kj_exception
ListSchema asList() except +reraise_kj_exception
cdef cppclass Schema:
Node.Reader getProto() except +reraise_kj_exception
@@ -214,6 +214,9 @@ cdef extern from "capnp/schema.h" namespace " ::capnp":
Enumerant getEnumerantByName(char * name)
Node.Reader getProto()
cdef cppclass ListSchema:
SchemaType getElementType()
cdef cppclass ConstSchema:
pass