Flair
Framework Libre Air
cvmatrix_descriptor.h
Go to the documentation of this file.
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}
13 #ifndef CVMATRIX_DESCRIPTOR_H
14 #define CVMATRIX_DESCRIPTOR_H
15 
16 #include <string>
17 
18 namespace flair {
19 namespace core {
20 
29 public:
38  cvmatrix_descriptor(uint32_t rows, uint32_t cols);
39 
45 
53  void SetElementName(uint32_t row, uint32_t col, std::string name);
54 
63  std::string ElementName(uint32_t row, uint32_t col) const;
64 
70  uint32_t Rows(void) const;
71 
77  uint32_t Cols(void) const;
78 
79 private:
80  uint32_t rows, cols;
81  std::string **element_names;
82 };
83 
84 } // end namespace core
85 } // end namespace flair
86 
87 #endif // CVMATRIX_DESCRIPTOR_H
namespace of the flair Framework
Definition: Ahrs.h:19
void SetElementName(uint32_t row, uint32_t col, std::string name)
Set element name.
uint32_t Cols(void) const
Number of colomns.
Class describing cvmatrix elements, for log and graphs purpose.
Definition: cvmatrix_descriptor.h:28
uint32_t Rows(void) const
Number of rows.
std::string ElementName(uint32_t row, uint32_t col) const
Element name.
cvmatrix_descriptor(uint32_t rows, uint32_t cols)
Constructor.