Commit cc704da6a79d942c2fd3da869c668453e7a8dc07
1 parent
a39181d2
include std_vector.i and add dim() methods
Showing
1 changed file
with
15 additions
and
11 deletions
pyext/GFitsTableCol.i
| ... | ... | @@ -39,6 +39,8 @@ |
| 39 | 39 | #include "GFitsTableUShortCol.hpp" |
| 40 | 40 | #include "GTools.hpp" |
| 41 | 41 | %} |
| 42 | +%include "std_vector.i" | |
| 43 | +%template(vectori) std::vector<int>; | |
| 42 | 44 | |
| 43 | 45 | |
| 44 | 46 | /***********************************************************************//** |
| ... | ... | @@ -63,17 +65,19 @@ public: |
| 63 | 65 | virtual void remove(const int& rownum, const int& nrows) = 0; |
| 64 | 66 | |
| 65 | 67 | // Base class Methods |
| 66 | - void name(const std::string& name); | |
| 67 | - void unit(const std::string& unit); | |
| 68 | - std::string name(void) const; | |
| 69 | - std::string unit(void) const; | |
| 70 | - int colnum(void) const; | |
| 71 | - int type(void) const; | |
| 72 | - int repeat(void) const; | |
| 73 | - int width(void) const; | |
| 74 | - int number(void) const; | |
| 75 | - int length(void) const; | |
| 76 | - int anynul(void) const; | |
| 68 | + void name(const std::string& name); | |
| 69 | + void unit(const std::string& unit); | |
| 70 | + void dim(const std::vector<int>& dim); | |
| 71 | + std::string name(void) const; | |
| 72 | + std::string unit(void) const; | |
| 73 | + std::vector<int> dim(void) const; | |
| 74 | + int colnum(void) const; | |
| 75 | + int type(void) const; | |
| 76 | + int repeat(void) const; | |
| 77 | + int width(void) const; | |
| 78 | + int number(void) const; | |
| 79 | + int length(void) const; | |
| 80 | + int anynul(void) const; | |
| 77 | 81 | }; |
| 78 | 82 | |
| 79 | 83 | ... | ... |