Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.dataflow.vtype Namespace Reference

Classes

class  TypeErr
 
class  Type
 
class  BoolType
 
class  IntType
 
class  FloatType
 
class  StringType
 
class  FileType
 
class  RecordMember
 
class  RecordType
 
class  ArrayType
 
class  DictType
 

Functions

def parseItemList
 
def itemListStr
 

Variables

tuple log = logging.getLogger('cpc.dataflow.vtype')
 
tuple valueType = Type('value', None)
 
tuple nullType = Type("null", valueType)
 
tuple boolType = BoolType("bool", valueType)
 
tuple intType = IntType("int", valueType)
 
tuple floatType = FloatType("float", valueType)
 
tuple stringType = StringType("string", valueType)
 
tuple fileType = FileType("file", valueType)
 
tuple recordType = RecordType("record", valueType)
 
tuple arrayType = ArrayType("array", valueType, memberType=valueType)
 
tuple dictType = DictType("dict", valueType, memberType=valueType)
 
tuple instanceType = Type("instance", valueType)
 
tuple msgType = Type("msg", valueType)
 
list primitives = [ valueType, boolType, intType, floatType, stringType, fileType ]
 
dictionary basicTypes
 
list basicTypeList
 

Function Documentation

def cpc.dataflow.vtype.itemListStr (   items)
Convert an item list into a string
def cpc.dataflow.vtype.parseItemList (   itemStr,
  startDotted = True 
)
Parse a string into a list of items + subitems. Returns a list
   of subitems

Variable Documentation

tuple cpc.dataflow.vtype.arrayType = ArrayType("array", valueType, memberType=valueType)
list cpc.dataflow.vtype.basicTypeList
Initial value:
1 = [valueType, nullType, boolType, intType, floatType,
2  stringType, fileType, recordType, arrayType, dictType ]
dictionary cpc.dataflow.vtype.basicTypes
Initial value:
1 = { valueType.getName() : valueType,
2  nullType.getName() : nullType,
3  boolType.getName() : boolType,
4  intType.getName() : intType,
5  floatType.getName() : floatType,
6  stringType.getName() : stringType,
7  fileType.getName() : fileType,
8  recordType.getName() : recordType,
9  arrayType.getName() : arrayType,
10  dictType.getName() : dictType }
tuple cpc.dataflow.vtype.boolType = BoolType("bool", valueType)
tuple cpc.dataflow.vtype.dictType = DictType("dict", valueType, memberType=valueType)
tuple cpc.dataflow.vtype.fileType = FileType("file", valueType)
tuple cpc.dataflow.vtype.floatType = FloatType("float", valueType)
tuple cpc.dataflow.vtype.instanceType = Type("instance", valueType)
tuple cpc.dataflow.vtype.intType = IntType("int", valueType)
tuple cpc.dataflow.vtype.log = logging.getLogger('cpc.dataflow.vtype')
tuple cpc.dataflow.vtype.msgType = Type("msg", valueType)
tuple cpc.dataflow.vtype.nullType = Type("null", valueType)
list cpc.dataflow.vtype.primitives = [ valueType, boolType, intType, floatType, stringType, fileType ]
tuple cpc.dataflow.vtype.recordType = RecordType("record", valueType)
tuple cpc.dataflow.vtype.stringType = StringType("string", valueType)
tuple cpc.dataflow.vtype.valueType = Type('value', None)