0032429: Coding - Warnings during compilation on macosx arm64 with option BUILD_Inspe...
[occt.git] / tools / MessageModel / MessageModel_ItemBase.hxx
CommitLineData
d16ecfe2 1// Created on: 2021-04-27
2// Created by: Natalia ERMOLAEVA
3// Copyright (c) 2021 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef MessageModel_ItemBase_H
17#define MessageModel_ItemBase_H
18
19#include <Standard.hxx>
20#include <TopoDS_Shape.hxx>
21#include <inspector/TreeModel_ItemBase.hxx>
22
23class MessageModel_ItemBase;
24typedef QExplicitlySharedDataPointer<MessageModel_ItemBase> MessageModel_ItemBasePtr;
25
26//! \class MessageModel_ItemBase
27// \brief Declaration of the tree model base item.
28class MessageModel_ItemBase : public TreeModel_ItemBase
29{
30public:
31
32 //! Resets cached values
33 virtual void Reset() Standard_OVERRIDE { TreeModel_ItemBase::Reset(); }
34
35protected:
36
37 //! Initialize the current item. It creates a backup of the specific item information
4db6d89b 38 virtual void initItem() const Standard_OVERRIDE {};
d16ecfe2 39
40 //! Constructor
41 //! param theParent a parent item
42 //! \param theRow the item row positition in the parent item
43 //! \param theColumn the item column positition in the parent item
44 MessageModel_ItemBase (TreeModel_ItemBasePtr theParent, const int theRow, const int theColumn)
45 : TreeModel_ItemBase (theParent, theRow, theColumn) {}
46
47 //! Return root item
48 //! \return an item instance
49 TreeModel_ItemBasePtr GetRootItem() const;
50};
51
52#endif