LibreOffice Module connectivity (master)
1
connectivity
source
drivers
macab
MacabHeader.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
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 .
18
*/
19
20
#pragma once
21
22
#include <
sal/config.h
>
23
24
#include <string_view>
25
26
#include "
MacabRecord.hxx
"
27
28
namespace
connectivity::macab
29
{
30
class
MacabHeader
:
public
MacabRecord
{
31
protected
:
32
macabfield
**
sortRecord
(sal_Int32 _start, sal_Int32 _length);
33
public
:
34
MacabHeader
();
35
MacabHeader
(
const
sal_Int32 _size,
macabfield
**_fields);
36
virtual
~MacabHeader
()
override
;
37
void
operator+=
(
const
MacabHeader
*r);
38
OUString
getString
(
const
sal_Int32
i
)
const
;
39
void
sortRecord
();
40
sal_Int32
getColumnNumber
(std::u16string_view s)
const
;
41
42
static
sal_Int32
compareFields
(
const
macabfield
*_field1,
const
macabfield
*_field2);
43
44
MacabHeader
*
begin
();
45
sal_Int32
end
()
const
;
46
class
iterator
{
47
protected
:
48
sal_Int32
id
;
49
MacabHeader
*
record
;
50
public
:
51
iterator
&
operator=
(
MacabHeader
*_record);
52
iterator
();
53
void
operator++
();
54
bool
operator!=
(
const
sal_Int32 i)
const
;
55
bool
operator==
(
const
sal_Int32 i)
const
;
56
macabfield
*
operator*
()
const
;
57
};
58
};
59
}
60
61
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
MacabRecord.hxx
connectivity::macab::MacabHeader::iterator
Definition:
MacabHeader.hxx:46
connectivity::macab::MacabHeader::iterator::operator++
void operator++()
Definition:
MacabHeader.cxx:301
connectivity::macab::MacabHeader::iterator::iterator
iterator()
Definition:
MacabHeader.cxx:288
connectivity::macab::MacabHeader::iterator::id
sal_Int32 id
Definition:
MacabHeader.hxx:48
connectivity::macab::MacabHeader::iterator::record
MacabHeader * record
Definition:
MacabHeader.hxx:49
connectivity::macab::MacabHeader::iterator::operator==
bool operator==(const sal_Int32 i) const
Definition:
MacabHeader.cxx:313
connectivity::macab::MacabHeader::iterator::operator!=
bool operator!=(const sal_Int32 i) const
Definition:
MacabHeader.cxx:307
connectivity::macab::MacabHeader::iterator::operator=
iterator & operator=(MacabHeader *_record)
Definition:
MacabHeader.cxx:293
connectivity::macab::MacabHeader::iterator::operator*
macabfield * operator*() const
Definition:
MacabHeader.cxx:319
connectivity::macab::MacabHeader
Definition:
MacabHeader.hxx:30
connectivity::macab::MacabHeader::~MacabHeader
virtual ~MacabHeader() override
Definition:
MacabHeader.cxx:69
connectivity::macab::MacabHeader::getColumnNumber
sal_Int32 getColumnNumber(std::u16string_view s) const
Definition:
MacabHeader.cxx:266
connectivity::macab::MacabHeader::sortRecord
void sortRecord()
Definition:
MacabHeader.cxx:161
connectivity::macab::MacabHeader::getString
OUString getString(const sal_Int32 i) const
Definition:
MacabHeader.cxx:142
connectivity::macab::MacabHeader::compareFields
static sal_Int32 compareFields(const macabfield *_field1, const macabfield *_field2)
Definition:
MacabHeader.cxx:240
connectivity::macab::MacabHeader::operator+=
void operator+=(const MacabHeader *r)
Definition:
MacabHeader.cxx:74
connectivity::macab::MacabHeader::end
sal_Int32 end() const
Definition:
MacabHeader.cxx:325
connectivity::macab::MacabHeader::MacabHeader
MacabHeader()
Definition:
MacabHeader.cxx:62
connectivity::macab::MacabHeader::begin
MacabHeader * begin()
Definition:
MacabHeader.cxx:282
connectivity::macab::MacabRecord
Definition:
MacabRecord.hxx:47
config.h
connectivity::macab
Definition:
MacabAddressBook.hxx:34
i
int i
connectivity::macab::macabfield
Definition:
MacabRecord.hxx:42
Generated on Sun Jul 30 2023 04:41:29 for LibreOffice Module connectivity (master) by
1.9.3