Home | Libraries | People | FAQ | More |
boost::sheet — This is the main class interface to be exposed to the library user.
// In header: <boost/document/sheet.hpp> class sheet { public: // construct/copy/destruct explicit sheet(const std::shared_ptr< sheet_interface >); ~sheet(); // private member functions boost::cell cell_from_string(const char *, std::size_t); // public member functions std::string sheet_name() const; std::size_t sheet_index() const; void rename_sheet(const std::string &); std::size_t max_row() const; std::size_t max_column() const; boost::cell get_cell(std::size_t, std::size_t); boost::row get_row(std::size_t); boost::column get_column(std::size_t); boost::column operator[](std::size_t); boost::column operator[](int); boost::cell operator[](const std::string &); boost::cell operator[](const char *); };
sheet
public member functionsstd::string sheet_name() const;Gets the sheet name which is being accessed.
std::size_t sheet_index() const;Gets the sheet index which is being accessed.
void rename_sheet(const std::string & str);Renames the sheet to str which is being accessed.
std::size_t max_row() const;
Returns the maximum number of rows
std::size_t max_column() const;
Returns the maximum number of columns
boost::cell get_cell(std::size_t row, std::size_t column);
Gets the cell instance which can be manipulated.
boost::row get_row(std::size_t i);
Gets a row instance which can be iterated over
boost::column get_column(std::size_t i);
Gets a column instance which can be iterated over
boost::column operator[](std::size_t i);
Gets the column instance which can be manipulated. No Exception Handling.
boost::column operator[](int i);
Gets the column instance which can be manipulated. No Exception Handling.
boost::cell operator[](const std::string & str);
Gets the cell instance which can be manipulated. No Exception Handling.
boost::cell operator[](const char * str);
Gets the cell instance which can be manipulated. No Exception Handling.