27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9 Copying an Extension between Files 23<br />

string hist("This file was created for testing <strong>CCfits</strong> write functionality")<br />

;<br />

hist += " it serves no other useful purpose. This particular part of the<br />

file was ";<br />

hist += " constructed to test the writeHistory() and writeComment()<br />

functionality" ;<br />

newTable->writeHistory(hist);<br />

// add a comment string. Use std::string method to change the text in the<br />

message<br />

// and write the previous junk as a comment.<br />

hist.insert(0, " COMMENT TEST ");<br />

newTable->writeComment(hist);<br />

// ... print the result.<br />

std::cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!