aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libother/smartptrtester.h
blob: 6d7991c065033fba8e03d1b2688b87e972688343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef SMARTPTRTESTER_H
#define SMARTPTRTESTER_H

#include "libothermacros.h"

#include <smart.h>
#include <str.h>

class LIBOTHER_API SmartPtrTester
{
public:
    SharedPtr<Str> createSharedPtrStr(const char *what);
    std::string valueOfSharedPtrStr(const SharedPtr<Str> &);

    SharedPtr<Integer> createSharedPtrInteger(int v);
    int valueOfSharedPtrInteger(const SharedPtr<Integer> &);

    void fiddleInt(const SharedPtr<int> &);
};

#endif // SMARTPTRTESTER_H