Add dynamic array tracing tests
[deliverable/barectf.git] / barectf / __init__.py
index 056b02737aead5e306990cac18d7f6ee3fa6aeb3..b47d71c779a71a3c341c4531fb25c6f841b286c1 100644 (file)
 # The MIT License (MIT)
 #
-# Copyright (c) 2014-2016 Philippe Proulx <pproulx@efficios.com>
+# Copyright (c) 2014-2020 Philippe Proulx <pproulx@efficios.com>
 #
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
 #
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
 #
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-__version__ = '2.1.3'
+import barectf.config_parse_common as barectf_config_parse_common
+import barectf.version as barectf_version
+import barectf.config as barectf_config
+import barectf.config_file as barectf_config_file
+import barectf.codegen as barectf_codegen
+import barectf.typing as barectf_typing
 
 
-def _split_version_suffix():
-    parts = __version__.split('-')
-    version = parts[0]
-    suffix = None
+# version API
+__major_version__ = barectf_version.__major_version__
+__minor_version__ = barectf_version.__minor_version__
+__patch_version__ = barectf_version.__patch_version__
+__version__ = barectf_version.__version__
 
-    if len(parts) == 2:
-        suffix = parts[1]
 
-    return version, suffix
+# common typing API
+Index = barectf_typing.Index
+Count = barectf_typing.Count
+Id = barectf_typing.Id
+Alignment = barectf_typing.Alignment
+VersionNumber = barectf_typing.VersionNumber
 
 
-def get_version_tuple():
-    version, suffix = _split_version_suffix()
-    parts = version.split('.')
+# configuration API
+_ArrayFieldType = barectf_config._ArrayFieldType
+_BitArrayFieldType = barectf_config._BitArrayFieldType
+_ConfigurationParseError = barectf_config_parse_common._ConfigurationParseError
+_EnumerationFieldType = barectf_config._EnumerationFieldType
+_FieldType = barectf_config._FieldType
+_IntegerFieldType = barectf_config._IntegerFieldType
+ByteOrder = barectf_config.ByteOrder
+ClockType = barectf_config.ClockType
+ClockTypeCTypes = barectf_config.ClockTypeCTypes
+ClockTypeOffset = barectf_config.ClockTypeOffset
+Configuration = barectf_config.Configuration
+ConfigurationCodeGenerationHeaderOptions = barectf_config.ConfigurationCodeGenerationHeaderOptions
+ConfigurationCodeGenerationOptions = barectf_config.ConfigurationCodeGenerationOptions
+ConfigurationOptions = barectf_config.ConfigurationOptions
+DEFAULT_FIELD_TYPE = barectf_config.DEFAULT_FIELD_TYPE
+DisplayBase = barectf_config.DisplayBase
+DynamicArrayFieldType = barectf_config.DynamicArrayFieldType
+EnumerationFieldTypeMapping = barectf_config.EnumerationFieldTypeMapping
+EnumerationFieldTypeMappingRange = barectf_config.EnumerationFieldTypeMappingRange
+EnumerationFieldTypeMappings = barectf_config.EnumerationFieldTypeMappings
+EventType = barectf_config.EventType
+LogLevel = barectf_config.LogLevel
+RealFieldType = barectf_config.RealFieldType
+SignedEnumerationFieldType = barectf_config.SignedEnumerationFieldType
+SignedIntegerFieldType = barectf_config.SignedIntegerFieldType
+StaticArrayFieldType = barectf_config.StaticArrayFieldType
+StreamType = barectf_config.StreamType
+StreamTypeEventFeatures = barectf_config.StreamTypeEventFeatures
+StreamTypeFeatures = barectf_config.StreamTypeFeatures
+StreamTypePacketFeatures = barectf_config.StreamTypePacketFeatures
+StringFieldType = barectf_config.StringFieldType
+StructureFieldType = barectf_config.StructureFieldType
+StructureFieldTypeMember = barectf_config.StructureFieldTypeMember
+StructureFieldTypeMembers = barectf_config.StructureFieldTypeMembers
+Trace = barectf_config.Trace
+TraceEnvironment = barectf_config.TraceEnvironment
+TraceType = barectf_config.TraceType
+TraceTypeFeatures = barectf_config.TraceTypeFeatures
+UnsignedEnumerationFieldType = barectf_config.UnsignedEnumerationFieldType
+UnsignedIntegerFieldType = barectf_config.UnsignedIntegerFieldType
 
-    return (int(parts[0]), int(parts[1]), int(parts[2]))
 
+# configuration file API
+configuration_file_major_version = barectf_config_file.configuration_file_major_version
+configuration_from_file = barectf_config_file.configuration_from_file
+effective_configuration_file = barectf_config_file.effective_configuration_file
 
-def get_version_suffix():
-    return _split_version_suffix()[1]
+
+# code generation API
+CodeGenerator = barectf_codegen.CodeGenerator
+
+
+# remove local names
+del barectf_config_parse_common
+del barectf_version
+del barectf_config
+del barectf_config_file
+del barectf_codegen
+del barectf_typing
This page took 0.024287 seconds and 4 git commands to generate.