Rev | Line | |
---|
[2] | 1 | // %flair:license{
|
---|
| 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
| 4 | // %flair:license}
|
---|
| 5 | /*!
|
---|
| 6 | * \file LayoutPosition.h
|
---|
| 7 | * \brief Class to define a position in a layout on the ground station.
|
---|
| 8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 9 | * \date 2014/12/04
|
---|
| 10 | * \version 4.0
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef LAYOUTPOSITION_H
|
---|
| 14 | #define LAYOUTPOSITION_H
|
---|
| 15 |
|
---|
| 16 | #include <stdint.h>
|
---|
| 17 |
|
---|
| 18 | namespace flair
|
---|
| 19 | {
|
---|
| 20 | namespace gui
|
---|
| 21 | {
|
---|
| 22 | class Layout;
|
---|
| 23 |
|
---|
| 24 | /*! \class LayoutPosition
|
---|
| 25 | *
|
---|
| 26 | * \brief Class to define a position in a layout on the ground station.
|
---|
| 27 | *
|
---|
| 28 |
|
---|
| 29 | */
|
---|
| 30 | class LayoutPosition
|
---|
| 31 | {
|
---|
| 32 | public:
|
---|
| 33 | /*!
|
---|
| 34 | * \brief Constructor
|
---|
| 35 | *
|
---|
| 36 | * Construct a LayoutPosition, in given Layout at given place.
|
---|
| 37 | *
|
---|
| 38 | * \param layout layout
|
---|
| 39 | * \param row row position
|
---|
| 40 | * \param col col position
|
---|
| 41 | */
|
---|
| 42 | LayoutPosition(const Layout* layout,int16_t row,int16_t col);
|
---|
| 43 |
|
---|
| 44 | /*!
|
---|
| 45 | * \brief Destructor
|
---|
| 46 | *
|
---|
| 47 | */
|
---|
| 48 | ~LayoutPosition();
|
---|
| 49 |
|
---|
| 50 | /*!
|
---|
| 51 | * \brief get Layout
|
---|
| 52 | *
|
---|
| 53 | * \return the parent Layout
|
---|
| 54 | */
|
---|
| 55 | const Layout* getLayout(void) const;
|
---|
| 56 |
|
---|
| 57 | /*!
|
---|
| 58 | * \brief get row
|
---|
| 59 | *
|
---|
| 60 | * \return row position
|
---|
| 61 | */
|
---|
| 62 | int16_t Row(void) const;
|
---|
| 63 |
|
---|
| 64 | /*!
|
---|
| 65 | * \brief get col
|
---|
| 66 | *
|
---|
| 67 | * \return col position
|
---|
| 68 | */
|
---|
| 69 | int16_t Col(void) const;
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | private:
|
---|
| 73 | const Layout *layout;
|
---|
| 74 | int16_t row,col;
|
---|
| 75 |
|
---|
| 76 | };
|
---|
| 77 |
|
---|
| 78 | } // end namespace gui
|
---|
| 79 | } // end namespace flair
|
---|
| 80 |
|
---|
| 81 | #endif // LAYOUTPOSITION_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.