Open r-barnes opened 2 years ago
You can also use inline documentation for things like classes, like so:
template<class T>
class Array2D {
public:
std::string filename; ///< File, if any, from which the data was loaded
std::string basename; ///< Filename without path or extension
std::vector<double> geotransform; ///< Geotransform of the raster
std::string projection; ///< Projection of the raster
std::map<std::string, std::string> metadata; ///< Raster's metadata in key-value pairs
But if you can get the documentation mostly there, I can make sure the syntax is okay.
I'll hold off on the Python documentation for now, since that can mostly be copied from the C++ code.
I have an example of DOxygen-style documentation from my own work here: https://github.com/r-barnes/richdem/blob/master/include/richdem/depressions/Barnes2014.hpp
Excerpted: