Sha256: 9b8c2a05cd61fc520808cac4f0f36d083491a9f694a42982f0d67fe8fe58a973

Contents?: true

Size: 1.75 KB

Versions: 9

Compression:

Stored size: 1.75 KB

Contents

#!/usr/bin/env ruby

# Constants for SQPR
#
# Copyright (c) 2009 Red Hat, Inc.
#
# Author:  William Benton (willb@redhat.com)
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0

module SPQR
  
  module XmlConstants
    Type = {
      'absTime' => 'Qmf::TYPE_ABSTIME',
      'array' => 'Qmf::TYPE_ARRAY',      # XXX:  is this right?
      'bool' => 'Qmf::TYPE_BOOL',
      'deltaTime' => 'Qmf::TYPE_DELTATIME',
      'double' => 'Qmf::TYPE_DOUBLE',
      'float' => 'Qmf::TYPE_FLOAT',
      'int16' => 'Qmf::TYPE_INT16',
      'int32' => 'Qmf::TYPE_INT32',
      'int64' => 'Qmf::TYPE_INT64',
      'int' => 'Qmf::TYPE_INT64',
      'int8' => 'Qmf::TYPE_INT8',
      'list' => 'Qmf::TYPE_LIST',        # XXX:  is this right?
      'lstr' => 'Qmf::TYPE_LSTR',
      'string' => 'Qmf::TYPE_LSTR',
      'map' => 'Qmf::TYPE_MAP',
      'objId' => 'Qmf::TYPE_REF',
      'sstr' => 'Qmf::TYPE_SSTR',
      'uint16' => 'Qmf::TYPE_UINT16',
      'uint32' => 'Qmf::TYPE_UINT32',
      'uint64' => 'Qmf::TYPE_UINT64',
      'uint' => 'Qmf::TYPE_UINT64',
      'uint8' => 'Qmf::TYPE_UINT8',
      'uuid' => 'Qmf::TYPE_UUID'
    }

    Access = {
      "RC" => 'Qmf::ACCESS_READ_CREATE',
      "RW" => 'Qmf::ACCESS_READ_WRITE',
      "RO" => 'Qmf::ACCESS_READ_ONLY',
      "R" => 'Qmf::ACCESS_READ_ONLY'
    }

    Direction = {
      "I" => 'Qmf::DIR_IN',
      "O" => 'Qmf::DIR_OUT',
      "IO" => 'Qmf::DIR_IN_OUT',
      "i" => 'Qmf::DIR_IN',
      "o" => 'Qmf::DIR_OUT',
      "io" => 'Qmf::DIR_IN_OUT',
      "in" => 'Qmf::DIR_IN',
      "out" => 'Qmf::DIR_OUT',
      "inout" => 'Qmf::DIR_IN_OUT'
    }
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spqr-0.2.0 lib/spqr/constants.rb
spqr-0.1.4 lib/spqr/constants.rb
spqr-0.1.3 lib/spqr/constants.rb
spqr-0.1.2 lib/spqr/constants.rb
spqr-0.1.1 lib/spqr/constants.rb
spqr-0.0.4 lib/spqr/constants.rb
spqr-0.1.0 lib/spqr/constants.rb
spqr-0.0.2 lib/spqr/constants.rb
spqr-0.0.1 lib/spqr/constants.rb