diff options
author | Nikolai Pretzell <np@openoffice.org> | 2002-11-01 16:15:51 +0000 |
---|---|---|
committer | Nikolai Pretzell <np@openoffice.org> | 2002-11-01 16:15:51 +0000 |
commit | 18e7b2a7dbc74cd094028e11b0910f1136cce615 (patch) | |
tree | bc1652165f7eb6af956a96cbb2e6408db0da2cbf /autodoc/source/ary/kernel | |
parent | 7a9d96862db4571421d6eadb314da3c0c67ece2b (diff) |
#103134#
Diffstat (limited to 'autodoc/source/ary/kernel')
-rw-r--r-- | autodoc/source/ary/kernel/makefile.mk | 30 | ||||
-rw-r--r-- | autodoc/source/ary/kernel/namesort.cxx | 139 | ||||
-rw-r--r-- | autodoc/source/ary/kernel/nametree.cxx | 47 | ||||
-rw-r--r-- | autodoc/source/ary/kernel/qualiname.cxx | 139 | ||||
-rw-r--r-- | autodoc/source/ary/kernel/reposy.cxx | 249 | ||||
-rw-r--r-- | autodoc/source/ary/kernel/x_ary.cxx | 108 |
6 files changed, 667 insertions, 45 deletions
diff --git a/autodoc/source/ary/kernel/makefile.mk b/autodoc/source/ary/kernel/makefile.mk index 5ff48f90d73f..9670db8f1557 100644 --- a/autodoc/source/ary/kernel/makefile.mk +++ b/autodoc/source/ary/kernel/makefile.mk @@ -2,9 +2,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.1.1.1 $ +# $Revision: 1.2 $ # -# last change: $Author: np $ $Date: 2002-03-08 14:45:19 $ +# last change: $Author: np $ $Date: 2002-11-01 17:14:07 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -81,17 +81,21 @@ PRJINC=$(PRJ)$/source OBJFILES= \ - $(OBJ)$/ary_disp.obj \ - $(OBJ)$/ce_null.obj \ - $(OBJ)$/cessentl.obj \ - $(OBJ)$/id_gener.obj \ - $(OBJ)$/instlist.obj \ - $(OBJ)$/nametree.obj \ - $(OBJ)$/opertype.obj \ - $(OBJ)$/project.obj \ - $(OBJ)$/quname.obj \ - $(OBJ)$/reposy.obj \ - $(OBJ)$/slots.obj + $(OBJ)$/ary_disp.obj \ + $(OBJ)$/ce_null.obj \ + $(OBJ)$/cessentl.obj \ + $(OBJ)$/id_gener.obj \ + $(OBJ)$/inheritgraph.obj \ + $(OBJ)$/inheritnode.obj \ + $(OBJ)$/instlist.obj \ + $(OBJ)$/namesort.obj \ + $(OBJ)$/nametree.obj \ + $(OBJ)$/opertype.obj \ + $(OBJ)$/project.obj \ + $(OBJ)$/qualiname.obj \ + $(OBJ)$/reposy.obj \ + $(OBJ)$/slots.obj \ + $(OBJ)$/x_ary.obj diff --git a/autodoc/source/ary/kernel/namesort.cxx b/autodoc/source/ary/kernel/namesort.cxx new file mode 100644 index 000000000000..be498017799e --- /dev/null +++ b/autodoc/source/ary/kernel/namesort.cxx @@ -0,0 +1,139 @@ +/************************************************************************* + * + * $RCSfile: namesort.cxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: np $ $Date: 2002-11-01 17:14:08 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + + +#include <precomp.h> +#include <namesort.hxx> + + +// NOT FULLY DEFINED SERVICES + + + +namespace +{ + +int C_cAryNameOrdering1[256] = + { 0,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 0 .. + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 32 .. + 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,255,255, 255,255,255,255, + + 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 64 .. + 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255, 63, + 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 96 .. + 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255,255, + + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //128 .. + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //160 .. + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255 + }; + +int C_cAryNameOrdering2[256] = + { 0,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 0 .. + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 32 .. + 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,255,255, 255,255,255,255, + + 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 64 .. + 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255, 63, + 255, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, // 96 .. + 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62,255, 255,255,255,255, + + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //128 .. + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //160 .. + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, + 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255 + }; +} + + +namespace ary +{ + + + + + +CompareCeNames::CompareCeNames() + : aOrdering1(C_cAryNameOrdering1), + aOrdering2(C_cAryNameOrdering2) +{ +} + + + + +} // namespace ary + + + diff --git a/autodoc/source/ary/kernel/nametree.cxx b/autodoc/source/ary/kernel/nametree.cxx index 2c8cc602ff29..ee4add9de2f7 100644 --- a/autodoc/source/ary/kernel/nametree.cxx +++ b/autodoc/source/ary/kernel/nametree.cxx @@ -2,9 +2,9 @@ * * $RCSfile: nametree.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: np $ $Date: 2002-03-08 14:45:20 $ + * last change: $Author: np $ $Date: 2002-11-01 17:14:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,27 +88,40 @@ int cCompareValues[128] = }; +#if 0 +#ifdef WNT +#define strcmp_nocase stricmp +#elif (UNX) +#define strcmp_nocase strcasecmp +#else +#error For running Autodoc, 'WNT' or 'UNX' must be defined. +#endif + bool NameTree:: Less_Name::operator()( const udmstri & i_r1, const udmstri & i_r2 ) const { - const unsigned char * - p1 = reinterpret_cast< const unsigned char* >( i_r1.c_str() ); - const unsigned char * - p2 = reinterpret_cast< const unsigned char* >( i_r2.c_str() ); - int cp = 0; - - do { - cp = cCompareValues[*p1] - cCompareValues[*p2++]; - if ( cp < 0 ) - return true; - if ( cp > 0 ) - return false; - } while (*p1++ != 0); - - return false; + int result = strcmp_nocase(i_r1.c_str(),i_r2.c_str()); + if (result != 0) + return result < 0; + + const unsigned char * + p1 = reinterpret_cast< const unsigned char* >( i_r1.c_str() ); + const unsigned char * + p2 = reinterpret_cast< const unsigned char* >( i_r2.c_str() ); + + int cp = 0; + do { + cp = cCompareValues[*p1] - cCompareValues[*p2++]; + if ( cp < 0 ) + return true; + if ( cp > 0 ) + return false; + } while (*p1++ != 0); + return false; } +#endif // 0 NameTree::NameTree() diff --git a/autodoc/source/ary/kernel/qualiname.cxx b/autodoc/source/ary/kernel/qualiname.cxx new file mode 100644 index 000000000000..938fadff1670 --- /dev/null +++ b/autodoc/source/ary/kernel/qualiname.cxx @@ -0,0 +1,139 @@ +/************************************************************************* + * + * $RCSfile: qualiname.cxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: np $ $Date: 2002-11-01 17:14:10 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#include <precomp.h> +#include <ary/qualiname.hxx> + + +// NOT FULLY DECLARED SERVICES + + +namespace ary +{ + + +QualifiedName::QualifiedName( uintt i_nSize ) + : aNamespace(), + sLocalName(), + bIsAbsolute(false), + bIsFunction() +{ + if (i_nSize > 0) + aNamespace.reserve(i_nSize); +} + +QualifiedName::QualifiedName( const char * i_sText, + const char * i_sSeparator ) + : aNamespace(), + sLocalName(), + bIsAbsolute(false), + bIsFunction() +{ + AssignText(i_sText,i_sSeparator); +} + +QualifiedName::~QualifiedName() +{ +} + +void +QualifiedName::AssignText( const char * i_sText, + const char * i_sSeparator ) +{ + csv_assert(NOT csv::no_str(i_sText) AND NOT csv::no_str(i_sSeparator)); + bIsAbsolute = false; + bIsFunction = false; + csv::erase_container( aNamespace ); + + uintt nSepLen = strlen(i_sSeparator); + const char * sNext = i_sText; + + const char * ps = strstr( i_sText, i_sSeparator ); + if (ps == i_sText) + { + bIsAbsolute = true; + sNext = ps + nSepLen; + } + + for ( ps = strstr(sNext, i_sSeparator); + ps != 0; + ps = strstr(sNext, i_sSeparator) ) + { + String sPart(sNext, ps - sNext); + aNamespace.push_back(sPart); + sNext = ps + nSepLen; + } + + uintt sNameLen = strlen(sNext); + if ( sNameLen > 2 ) + { + ps = sNext + sNameLen - 2; + if (*ps == '(' AND *(ps+1) == ')') + { + sNameLen -= 2; + bIsFunction = true; + } + } + sLocalName = String(sNext,sNameLen); +} + + +} // namespace ary diff --git a/autodoc/source/ary/kernel/reposy.cxx b/autodoc/source/ary/kernel/reposy.cxx index 8f6070212114..419eb90491cf 100644 --- a/autodoc/source/ary/kernel/reposy.cxx +++ b/autodoc/source/ary/kernel/reposy.cxx @@ -2,9 +2,9 @@ * * $RCSfile: reposy.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: np $ $Date: 2002-03-08 14:45:20 $ + * last change: $Author: np $ $Date: 2002-11-01 17:14:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,24 +59,253 @@ * ************************************************************************/ +// VERSION: Autodoc 2.2 + + #include <precomp.h> #include <reposy.hxx> // NOT FULLY DECLARED SERVICES +#include <ary/x_ary.hxx> +#include <ary/actions.hxx> +#include <idl/i_reposypart.hxx> + + // S P L I T // + #include <store/storage.hxx> #include <store/strg_ifc.hxx> #include <id_gener.hxx> #include <cpp/c_gate.hxx> #include <loc/l_gate.hxx> -#include <store/storage.hxx> -#include "../../ary_i/inc/uidl/gate_i.hxx" namespace ary { + +namespace n22 +{ + +using ::ary::Command; +using ::ary::X_Ary; + +//***************** Repository ************// + +namespace +{ + static Dyn<RepositoryCenter> pTheInstance_(0); +} + +Repository & +Repository::Create_( const String & i_sName ) +{ + if ( pTheInstance_ ) + throw X_Ary(X_Ary::x_MultipleRepository); + + pTheInstance_ = new RepositoryCenter( i_sName ); + return *pTheInstance_; +} + +Repository & +Repository::The_() +{ + if ( pTheInstance_ ) + throw X_Ary(X_Ary::x_MissingRepository); + + return *pTheInstance_; +} + +void +Repository::Destroy_() +{ + pTheInstance_ = 0; +} + + +//***************** RepositoryCenter ************// + + +RepositoryCenter::RepositoryCenter( const String & i_sName ) + : sDisplayedName(i_sName), + aLocation(), +#if 0 // Version 2.2 + pCppPartition(), +#endif // Version 2.2 + pIdlPartition() +{ +} + +RepositoryCenter::~RepositoryCenter() +{ +} + +void +RepositoryCenter::RunCommand_ProduceAllSecondaries() +{ + // KORR_FUTURE +} + +void +RepositoryCenter::RunCommand_Statistic( ::ary::action::Statistic & io_rCommand ) +{ + // KORR_FUTURE +} + +void +RepositoryCenter::do_Perform( Command & io_rCommand ) +{ + io_rCommand.Run(*this); +} + +const String & +RepositoryCenter::inq_Name() const +{ + return sDisplayedName; +} + +const ::ary::idl::Gate & +RepositoryCenter::inq_Gate_Idl() const +{ + return const_cast< RepositoryCenter& >(*this).access_Gate_Idl(); +} + + +::ary::idl::Gate & +RepositoryCenter::access_Gate_Idl() +{ + if (NOT pIdlPartition) + pIdlPartition = new idl::RepositoryPartition(*this); + + return pIdlPartition->TheGate(); +} + + +#if 0 // Version 2.2 +/* +cpp::Gate & +RepositoryCenter::access_Gate_Cpp() +{ + csv_assert( pCppPartition ); + return pCppPartition->TheGate(); +} +const cpp::Gate & +RepositoryCenter::inq_Gate_Cpp() const +{ + csv_assert( pCppPartition ); + return pCppPartition->TheGate(); +} +*/ +#endif // Version 2.2 + + +} // namespace n22 + + + +/* ClassType-Ids + ------------- + + + cpp 1000 + idl 2000 + corba 3000 + java 4000 + information 5000 + logic location 6000 + phys location 7000 + sec. prod. 8000 + + + cpp + --- + Namespace 1000 + Class 1001 + Enum 1002 + Typedef 1003 + Function 1004 + Variable 1005 + EnumValue 1006 + NamespaceAlias 1007 + + BuiltInType 1200 + CeType_Final 1201 + CeType_Extern 1202 + PtrType 1211 + RefType 1212 + ConstType 1221 + VolatileType 1222 + ArrayType 1230 + TemplateInstance 1235 + FunctionPtr 1240 + DataMemberPtr 1250 + OperationMemberPtr 1260 + + TplParam_Type 1301 + TplParam_Value 1302 + + OpSignature 1400 + + Define 1601 + Macro 1602 + + + idl + --- + + Module 2000 + Interface 2001 + Function 2002 + Service 2003 + Property 2004 + Enum 2005 + EnumValue 2006 + Typedef 2007 + Struct 2008 + StructElement 2009 + Exception 2010 + ConstantGroup 2011 + Constant 2012 + Singleton 2013 + Attribute 2014 + + BuiltInType 2200 + CeType 2201 + Sequence 2202 + ExplicitType 2203 + ExplicitNameRoom 2204 + + java + ---- + Package 4000 + Interface 4001 + Class 4002 + + + + + info + ---- + CodeInformation + (IDL) 11002 +*/ + + + + + + + + + + + + // S P L I T // + + + + namespace { static Dyn<RepositoryCenter> pTheInstance_(0); @@ -91,8 +320,6 @@ struct RepositoryCenter::CheshireCat Dyn<IdGenerator> pIdGenerator; Dyn<cpp::Gate> pGate_Cpp; - Dyn<uidl::Gate_Impl> - pGate_Idl; Dyn<loc::Gate> pGate_Locations; CheshireCat( @@ -148,7 +375,7 @@ RepositoryCenter::inq_DisplayGate_Cpp() const const udmstri & RepositoryCenter::inq_Name() const { - return pi->sName; + return pi->sName; } cpp::RwGate & @@ -157,12 +384,6 @@ RepositoryCenter::access_RwGate_Cpp() return *pi->pGate_Cpp; } -uidl::Gate & -RepositoryCenter::access_RwGate_Idl() -{ - return *pi->pGate_Idl; -} - RepositoryCenter:: CheshireCat::CheshireCat( const udmstri & i_sName, @@ -172,7 +393,6 @@ CheshireCat::CheshireCat( const udmstri & i_sName, pStorage_Ifc(0), pIdGenerator( &let_drIds ), pGate_Cpp(0), - pGate_Idl(0), pGate_Locations(0) { pStorage = new store::Storage; @@ -184,7 +404,6 @@ CheshireCat::CheshireCat( const udmstri & i_sName, *pStorage_Ifc, *pIdGenerator, *pGate_Locations ); - pGate_Idl = new uidl::Gate_Impl; } RepositoryCenter:: diff --git a/autodoc/source/ary/kernel/x_ary.cxx b/autodoc/source/ary/kernel/x_ary.cxx new file mode 100644 index 000000000000..5c659052abf8 --- /dev/null +++ b/autodoc/source/ary/kernel/x_ary.cxx @@ -0,0 +1,108 @@ +/************************************************************************* + * + * $RCSfile: x_ary.cxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: np $ $Date: 2002-11-01 17:14:13 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2002 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#include <precomp.h> +#include <ary/x_ary.hxx> + + +// NOT FULLY DECLARED SERVICES + + + +namespace ary +{ + + +X_Ary::X_Ary( E_Event i_eEvent ) + : eEvent(i_eEvent) +{ +} + +void +X_Ary::GetInfo( ostream & o_rOutputMedium ) const +{ + switch (eEvent) + { + case x_MultipleRepository: + o_rOutputMedium << "Tried to create a repository instance, though there exists one already."; + break; + case x_MissingRepository: + o_rOutputMedium << "Tried to access the repository, though there exists none."; + break; + case x_EntityNotFound: + o_rOutputMedium << "Code entity not found in repository."; + break; + case x_ConflictingNames: + o_rOutputMedium << "Name of code entity occurs double in different versions."; + break; + case x_UnexpectedTypeOfObject: + o_rOutputMedium << "Name- or id-mismatch: Code entity had other type than expected."; + break; + case x_Any: + default: + o_rOutputMedium << "Unspecified exception in repository."; + } // end switch + o_rOutputMedium << Endl(); +} + + +} // namespace ary + |