/usr/lib/omniidl/omniidl_be/cxx/skel/poa.py is in omniidl 4.1.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | # -*- python -*-
# Package : omniidl
# poa.py Created on: 1999/11/12
# Author : David Scott (djs)
#
# Copyright (C) 2002-2005 Apasphere Ltd
# Copyright (C) 1999 AT&T Laboratories Cambridge
#
# This file is part of omniidl.
#
# omniidl is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#
# Description:
#
# Produce the main POA skeleton definitions
# $Id: poa.py 5867 2009-05-06 16:16:18Z dgrisby $
# $Log$
# Revision 1.11.2.4 2005/11/09 12:22:17 dgrisby
# Local interfaces support.
#
# Revision 1.11.2.3 2003/11/06 11:56:56 dgrisby
# Yet more valuetype. Plain valuetype and abstract valuetype are now working.
#
# Revision 1.11.2.2 2003/10/23 11:25:55 dgrisby
# More valuetype support.
#
# Revision 1.11.2.1 2003/03/23 21:02:34 dgrisby
# Start of omniORB 4.1.x development branch.
#
# Revision 1.9.2.4 2001/10/29 17:42:42 dpg1
# Support forward-declared structs/unions, ORB::create_recursive_tc().
#
# Revision 1.9.2.3 2001/06/08 17:12:20 dpg1
# Merge all the bug fixes from omni3_develop.
#
# Revision 1.9.2.2 2000/10/12 15:37:53 sll
# Updated from omni3_1_develop.
#
# Revision 1.10.2.1 2000/08/21 11:35:34 djs
# Lots of tidying
#
# Revision 1.10 2000/07/13 15:25:59 dpg1
# Merge from omni3_develop for 3.0 release.
#
# Revision 1.7.2.3 2000/06/26 16:24:18 djs
# Refactoring of configuration state mechanism.
#
# Revision 1.7.2.2 2000/04/26 18:22:56 djs
# Rewrote type mapping code (now in types.py)
# Rewrote identifier handling code (now in id.py)
# Removed superfluous externs in front of function definitions
#
# Revision 1.7.2.1 2000/02/14 18:34:53 dpg1
# New omniidl merged in.
#
# Revision 1.7 2000/01/19 17:05:16 djs
# Modified to use an externally stored C++ output template.
#
# Revision 1.6 2000/01/13 14:16:35 djs
# Properly clears state between processing separate IDL input files
#
# Revision 1.5 2000/01/10 18:42:22 djs
# Removed redundant code, tidied up.
#
# Revision 1.4 1999/12/25 21:47:19 djs
# Better TypeCode support
#
# Revision 1.3 1999/11/23 18:48:26 djs
# Bugfixes, more interface operations and attributes code
#
# Revision 1.2 1999/11/19 20:09:40 djs
# Added trivial POA interface code
#
# Revision 1.1 1999/11/12 17:18:58 djs
# Struct skeleton code added
#
"""Produce the main POA skeleton definitions"""
# similar to o2be_root::produce_poa_skel in the old C++ BE
from omniidl import idlast, idltype, idlutil
from omniidl_be.cxx import ast, cxx, id
from omniidl_be.cxx.skel import template
import poa
self = poa
def __init__(stream):
poa.stream = stream
self.__nested = 0
return poa
def POA_prefix():
if not self.__nested:
return "POA_"
return ""
# ------------------------------------
# Control arrives here
def visitAST(node):
for n in node.declarations():
if ast.shouldGenerateCodeForDecl(n):
n.accept(self)
def visitModule(node):
name = id.mapID(node.identifier())
for n in node.definitions():
nested = self.__nested
self.__nested = 1
n.accept(self)
self.__nested = nested
def visitInterface(node):
if node.local():
return
name = id.mapID(node.identifier())
fqname = id.Name(node.scopedName()).fullyQualify()
stream.out(template.interface_POA,
POA_prefix = POA_prefix(),
name = name,
fqname = fqname)
def visitTypedef(node):
pass
def visitEnum(node):
pass
def visitStruct(node):
pass
def visitStructForward(node):
pass
def visitUnion(node):
pass
def visitUnionForward(node):
pass
def visitForward(node):
pass
def visitConst(node):
pass
def visitDeclarator(node):
pass
def visitMember(node):
pass
def visitException(node):
pass
def visitValue(node):
pass
def visitValueForward(node):
pass
def visitValueBox(node):
pass
def visitValueAbs(node):
pass
|