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
@@ -69,6 +69,14 @@ public: @@ -69,6 +69,14 @@ public:
69 file = NULL; //set the file pointer to NULL 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 void* malloc_spectrum(){ 82 void* malloc_spectrum(){
stim/parser/filename.h
@@ -221,6 +221,13 @@ public: @@ -221,6 +221,13 @@ public:
221 return ss.str(); 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 /// Create a matching file locator with a prefix s 231 /// Create a matching file locator with a prefix s
225 stim::filename prefix(std::string s){ 232 stim::filename prefix(std::string s){
226 stim::filename result = *this; 233 stim::filename result = *this;