diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 14:32:20 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 14:32:20 +0000 |
commit | 3a3c3c1c4491531887f857ad242f126cfcc99c20 (patch) | |
tree | 072037d1f8879a5871e3b4a7cbc3d29a5446c5a6 /autodoc/source/ary/cpp | |
parent | 1fdd3ac1481cc35f5d29b0b8b2c2a3eaad546aa9 (diff) |
INTEGRATION: CWS adc18 (1.1.4); FILE ADDED
2007/10/18 15:01:34 np 1.1.4.2: #i81775#
2005/07/21 12:30:04 np 1.1.4.1: file cs_ce.cxx was added on branch cws_src680_adc18 on 2007-10-18 15:01:34 +0000
Diffstat (limited to 'autodoc/source/ary/cpp')
-rw-r--r-- | autodoc/source/ary/cpp/cs_ce.cxx | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/autodoc/source/ary/cpp/cs_ce.cxx b/autodoc/source/ary/cpp/cs_ce.cxx new file mode 100644 index 000000000000..e9f7cedfb728 --- /dev/null +++ b/autodoc/source/ary/cpp/cs_ce.cxx @@ -0,0 +1,112 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: cs_ce.cxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: hr $ $Date: 2007-11-02 15:32:20 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 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 + * + ************************************************************************/ + +#include <precomp.h> +#include "cs_ce.hxx" + +// NOT FULLY DEFINED SERVICES +#include <ary/cpp/c_namesp.hxx> + + + +namespace +{ +const uintt + C_nReservedElements = ::ary::cpp::predefined::ce_MAX; // Skipping "0" and the GlobalNamespace +} + + + + +namespace ary +{ +namespace cpp +{ + +Ce_Storage * Ce_Storage::pInstance_ = 0; + + + +Ce_Storage::Ce_Storage() + : stg::Storage<CodeEntity>(C_nReservedElements), + aTypes(), + aOperations(), + aData() + +{ + Set_Reserved( predefined::ce_GlobalNamespace, + *new Namespace ); + + csv_assert(pInstance_ == 0); + pInstance_ = this; +} + +Ce_Storage::~Ce_Storage() +{ + csv_assert(pInstance_ != 0); + pInstance_ = 0; +} + +Ce_id +Ce_Storage::Store_Type(DYN CodeEntity & pass_ce) +{ + Ce_id + ret = Store_Entity(pass_ce); + aTypes.Add(ret); + return ret; +} + +Ce_id +Ce_Storage::Store_Operation(DYN CodeEntity & pass_ce) +{ + Ce_id + ret = Store_Entity(pass_ce); + aOperations.Add(ret); + return ret; +} + +Ce_id +Ce_Storage::Store_Datum(DYN CodeEntity & pass_ce) +{ + Ce_id + ret = Store_Entity(pass_ce); + aData.Add(ret); + return ret; +} + + + +} // namespace cpp +} // namespace ary |