1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
33 typedef uintt ClassId
;
38 typedef Rid Gid
; /// Group Id. Id of a group.
39 typedef UINT8 SlotAccessId
; /// Access to a Slot
40 typedef std::set
< Rid
, std::less
< Rid
> > Set_Rid
;
41 typedef std::vector
<Rid
> List_Rid
;
47 /** This is a global id, providing as well an entity's class as its
63 bool IsValid() const { return nClass
!= 0
66 ClassId
Class() const { return nClass
; }
67 Rid
Id() const { return nId
; }
76 typedef std::vector
<GlobalId
> List_GlobalIds
;
79 /** This is a typed repository id. It allows to get
80 an object of a specific type.
86 typedef TypedId
<IFC
> self
;
92 TypedId
<IFC
> & operator=(
94 { nId
= i_nId
; return *this; }
98 { return nId
== i_nId
.nId
; }
102 { return NOT
operator==(i_nId
); }
106 { return nId
< i_nId
.nId
; }
108 bool IsValid() const { return nId
!= 0; }
109 Rid
Value() const { return nId
; }
111 static self
Null_() { return self(0); }
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */