LibreOffice Module connectivity (master) 1
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
28namespace connectivity::macab
29{
30 class MacabHeader: public MacabRecord{
31 protected:
32 macabfield **sortRecord(sal_Int32 _start, sal_Int32 _length);
33 public:
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
45 sal_Int32 end() const;
46 class iterator{
47 protected:
48 sal_Int32 id;
50 public:
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: */
bool operator==(const sal_Int32 i) const
bool operator!=(const sal_Int32 i) const
iterator & operator=(MacabHeader *_record)
virtual ~MacabHeader() override
Definition: MacabHeader.cxx:69
sal_Int32 getColumnNumber(std::u16string_view s) const
OUString getString(const sal_Int32 i) const
static sal_Int32 compareFields(const macabfield *_field1, const macabfield *_field2)
void operator+=(const MacabHeader *r)
Definition: MacabHeader.cxx:74
int i