1*d291ea28SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*d291ea28SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d291ea28SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d291ea28SAndrew Rist * distributed with this work for additional information 6*d291ea28SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d291ea28SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d291ea28SAndrew Rist * "License"); you may not use this file except in compliance 9*d291ea28SAndrew Rist * with the License. You may obtain a copy of the License at 10*d291ea28SAndrew Rist * 11*d291ea28SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d291ea28SAndrew Rist * 13*d291ea28SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d291ea28SAndrew Rist * software distributed under the License is distributed on an 15*d291ea28SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d291ea28SAndrew Rist * KIND, either express or implied. See the License for the 17*d291ea28SAndrew Rist * specific language governing permissions and limitations 18*d291ea28SAndrew Rist * under the License. 19*d291ea28SAndrew Rist * 20*d291ea28SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #include <precomp.h> 23cdf0e10cSrcweir #include <reposy.hxx> 24cdf0e10cSrcweir 25cdf0e10cSrcweir 26cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES 27cdf0e10cSrcweir #include <cpp_internalgate.hxx> 28cdf0e10cSrcweir #include <idl_internalgate.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace ary 32cdf0e10cSrcweir { 33cdf0e10cSrcweir 34cdf0e10cSrcweir 35cdf0e10cSrcweir //***************** Repository ************// 36cdf0e10cSrcweir 37cdf0e10cSrcweir DYN Repository & Create_()38cdf0e10cSrcweirRepository::Create_() 39cdf0e10cSrcweir { 40cdf0e10cSrcweir return *new RepositoryCenter; 41cdf0e10cSrcweir } 42cdf0e10cSrcweir 43cdf0e10cSrcweir 44cdf0e10cSrcweir 45cdf0e10cSrcweir RepositoryCenter()46cdf0e10cSrcweirRepositoryCenter::RepositoryCenter() 47cdf0e10cSrcweir : sDisplayedName(), 48cdf0e10cSrcweir aLocation(), 49cdf0e10cSrcweir pCppPartition(0), 50cdf0e10cSrcweir pIdlPartition(0) 51cdf0e10cSrcweir { 52cdf0e10cSrcweir pCppPartition = & cpp::InternalGate::Create_Partition_(*this); 53cdf0e10cSrcweir pIdlPartition = & idl::InternalGate::Create_Partition_(*this); 54cdf0e10cSrcweir } 55cdf0e10cSrcweir ~RepositoryCenter()56cdf0e10cSrcweirRepositoryCenter::~RepositoryCenter() 57cdf0e10cSrcweir { 58cdf0e10cSrcweir } 59cdf0e10cSrcweir 60cdf0e10cSrcweir const ::ary::cpp::Gate & Gate_Cpp() const61cdf0e10cSrcweirRepositoryCenter::Gate_Cpp() const 62cdf0e10cSrcweir { 63cdf0e10cSrcweir csv_assert(pCppPartition); 64cdf0e10cSrcweir return *pCppPartition; 65cdf0e10cSrcweir } 66cdf0e10cSrcweir 67cdf0e10cSrcweir const ::ary::idl::Gate & Gate_Idl() const68cdf0e10cSrcweirRepositoryCenter::Gate_Idl() const 69cdf0e10cSrcweir { 70cdf0e10cSrcweir csv_assert(pIdlPartition); 71cdf0e10cSrcweir return *pIdlPartition; 72cdf0e10cSrcweir } 73cdf0e10cSrcweir 74cdf0e10cSrcweir const String & Title() const75cdf0e10cSrcweirRepositoryCenter::Title() const 76cdf0e10cSrcweir { 77cdf0e10cSrcweir return sDisplayedName; 78cdf0e10cSrcweir } 79cdf0e10cSrcweir 80cdf0e10cSrcweir 81cdf0e10cSrcweir ::ary::cpp::Gate & Gate_Cpp()82cdf0e10cSrcweirRepositoryCenter::Gate_Cpp() 83cdf0e10cSrcweir { 84cdf0e10cSrcweir csv_assert(pCppPartition); 85cdf0e10cSrcweir return *pCppPartition; 86cdf0e10cSrcweir } 87cdf0e10cSrcweir 88cdf0e10cSrcweir ::ary::idl::Gate & Gate_Idl()89cdf0e10cSrcweirRepositoryCenter::Gate_Idl() 90cdf0e10cSrcweir { 91cdf0e10cSrcweir csv_assert(pIdlPartition); 92cdf0e10cSrcweir return *pIdlPartition; 93cdf0e10cSrcweir } 94cdf0e10cSrcweir 95cdf0e10cSrcweir void Set_Title(const String & i_sName)96cdf0e10cSrcweirRepositoryCenter::Set_Title(const String & i_sName) 97cdf0e10cSrcweir { 98cdf0e10cSrcweir sDisplayedName = i_sName; 99cdf0e10cSrcweir } 100cdf0e10cSrcweir 101cdf0e10cSrcweir 102cdf0e10cSrcweir 103cdf0e10cSrcweir 104cdf0e10cSrcweir //********************* Repository Type Info Data ****************// 105cdf0e10cSrcweir 106cdf0e10cSrcweir // !!! IMPORTANT - NEVER DELETE OR CHANGE - ADDING ALLOWED 107cdf0e10cSrcweir 108cdf0e10cSrcweir 109cdf0e10cSrcweir 110cdf0e10cSrcweir /* ClassType-Ids 111cdf0e10cSrcweir ------------- 112cdf0e10cSrcweir 113cdf0e10cSrcweir cpp 1000 114cdf0e10cSrcweir idl 2000 115cdf0e10cSrcweir corba 3000 116cdf0e10cSrcweir java 4000 117cdf0e10cSrcweir information 5000 118cdf0e10cSrcweir logic location 6000 119cdf0e10cSrcweir phys location 7000 120cdf0e10cSrcweir sec. prod. 8000 121cdf0e10cSrcweir 122cdf0e10cSrcweir 123cdf0e10cSrcweir cpp 124cdf0e10cSrcweir --- 125cdf0e10cSrcweir Namespace 1000 126cdf0e10cSrcweir Class 1001 127cdf0e10cSrcweir Enum 1002 128cdf0e10cSrcweir Typedef 1003 129cdf0e10cSrcweir Function 1004 130cdf0e10cSrcweir Variable 1005 131cdf0e10cSrcweir EnumValue 1006 132cdf0e10cSrcweir NamespaceAlias 1007 133cdf0e10cSrcweir 134cdf0e10cSrcweir BuiltInType 1200 135cdf0e10cSrcweir CeType_Final 1201 136cdf0e10cSrcweir CeType_Extern 1202 137cdf0e10cSrcweir UsedType 1203 138cdf0e10cSrcweir PtrType 1211 139cdf0e10cSrcweir RefType 1212 140cdf0e10cSrcweir ConstType 1221 141cdf0e10cSrcweir VolatileType 1222 142cdf0e10cSrcweir ArrayType 1230 143cdf0e10cSrcweir TemplateInstance 1235 144cdf0e10cSrcweir FunctionPtr 1240 145cdf0e10cSrcweir DataMemberPtr 1250 146cdf0e10cSrcweir OperationMemberPtr 1260 147cdf0e10cSrcweir 148cdf0e10cSrcweir TplParam_Type 1301 149cdf0e10cSrcweir TplParam_Value 1302 150cdf0e10cSrcweir 151cdf0e10cSrcweir OpSignature 1400 152cdf0e10cSrcweir 153cdf0e10cSrcweir Define 1601 154cdf0e10cSrcweir Macro 1602 155cdf0e10cSrcweir 156cdf0e10cSrcweir ProjectGroup 1901 157cdf0e10cSrcweir FileGroup 1902 158cdf0e10cSrcweir 159cdf0e10cSrcweir TopProject 1921 160cdf0e10cSrcweir 161cdf0e10cSrcweir 162cdf0e10cSrcweir 163cdf0e10cSrcweir idl 164cdf0e10cSrcweir --- 165cdf0e10cSrcweir 166cdf0e10cSrcweir Module 2000 167cdf0e10cSrcweir Interface 2001 168cdf0e10cSrcweir Function 2002 169cdf0e10cSrcweir Service 2003 170cdf0e10cSrcweir Property 2004 171cdf0e10cSrcweir Enum 2005 172cdf0e10cSrcweir EnumValue 2006 173cdf0e10cSrcweir Typedef 2007 174cdf0e10cSrcweir Struct 2008 175cdf0e10cSrcweir StructElement 2009 176cdf0e10cSrcweir Exception 2010 177cdf0e10cSrcweir ConstantGroup 2011 178cdf0e10cSrcweir Constant 2012 179cdf0e10cSrcweir Singleton 2013 180cdf0e10cSrcweir Attribute 2014 181cdf0e10cSrcweir SglIfcService 2015 182cdf0e10cSrcweir SglIfcSingleton 2016 183cdf0e10cSrcweir 184cdf0e10cSrcweir BuiltInType 2200 185cdf0e10cSrcweir CeType 2201 186cdf0e10cSrcweir Sequence 2202 187cdf0e10cSrcweir ExplicitType 2203 188cdf0e10cSrcweir ExplicitNameRoom 2204 189cdf0e10cSrcweir TemplateParamType 2205 190cdf0e10cSrcweir 191cdf0e10cSrcweir 192cdf0e10cSrcweir java 193cdf0e10cSrcweir ---- 194cdf0e10cSrcweir Package 4000 195cdf0e10cSrcweir Interface 4001 196cdf0e10cSrcweir Class 4002 197cdf0e10cSrcweir 198cdf0e10cSrcweir physical location 199cdf0e10cSrcweir ----------------- 200cdf0e10cSrcweir Root 7000 201cdf0e10cSrcweir Directory 7030 202cdf0e10cSrcweir File 7100 203cdf0e10cSrcweir 204cdf0e10cSrcweir 205cdf0e10cSrcweir info 206cdf0e10cSrcweir ---- 207cdf0e10cSrcweir CodeInformation 208cdf0e10cSrcweir (IDL) 11002 209cdf0e10cSrcweir */ 210cdf0e10cSrcweir 211cdf0e10cSrcweir 212cdf0e10cSrcweir } // namespace ary 213