Commit ec722ff94afb28255f65e9e67515e16ed8c12aaa

Authored by David Mayerich
1 parent 550bb945

added spero mosaic builder

Showing 2 changed files with 15 additions and 0 deletions   Show diff stats
stim/envi/envi.h
... ... @@ -69,6 +69,14 @@ public:
69 69 file = NULL; //set the file pointer to NULL
70 70 }
71 71  
  72 + envi(std::string filename, std::string headername){
  73 + header.load(headername);
  74 +
  75 + fname = filename; //save the filename
  76 +
  77 + allocate();
  78 + }
  79 +
72 80  
73 81  
74 82 void* malloc_spectrum(){
... ...
stim/parser/filename.h
... ... @@ -221,6 +221,13 @@ public:
221 221 return ss.str();
222 222 }
223 223  
  224 + //return a string for the filename without an extension
  225 + std::string str_noext(){
  226 + std::stringstream ss;
  227 + ss<<filepath::str()<<_prefix;
  228 + return ss.str();
  229 + }
  230 +
224 231 /// Create a matching file locator with a prefix s
225 232 stim::filename prefix(std::string s){
226 233 stim::filename result = *this;
... ...