Skip to content

Commit 7bf8e6c

Browse files
authored
Merge pull request #62 from krzysg/master
Comments in TiffUtils updated
2 parents 1138f5b + 5ad5f2a commit 7bf8e6c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/io/TiffUtils.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ namespace TiffUtils {
2929

3030
~TiffInfo() { close(); }
3131

32+
/**
33+
* Return string information about opened TIFF file
34+
**/
3235
std::string toString() const {
3336
if (iFile == nullptr) {
3437
return "<File not opened>";
@@ -58,6 +61,9 @@ namespace TiffUtils {
5861
return outputStr.str();
5962
}
6063

64+
/**
65+
* return true if file is opened
66+
**/
6167
bool isFileOpened() const { return iFile != nullptr; }
6268

6369
TiffType iType = TiffType::TIFF_INVALID;
@@ -75,6 +81,9 @@ namespace TiffUtils {
7581
TiffInfo(const TiffInfo&) = delete; // make it noncopyable
7682
TiffInfo& operator=(const TiffInfo&) = delete; // make it not assignable
7783

84+
/**
85+
* opens TIFF
86+
**/
7887
bool open(const std::string &aFileName) {
7988

8089
std::cout << "Opening file: [" << (aFileName == "" ? "null" : aFileName) << "]" << std::endl;
@@ -177,7 +186,6 @@ namespace TiffUtils {
177186
void getMesh(const TiffInfo &aTiff, MeshData<T> &aInputMesh) {
178187
if (!aTiff.isFileOpened()) return;
179188

180-
// Prepeare preallocated MeshData object for TIF
181189
std::cout << "getMesh: " << aInputMesh << std::endl;
182190

183191
// Get some more data from TIFF needed during reading

0 commit comments

Comments
 (0)