io.h File Reference

high-level input/output functions More...

#include <string>
#include <future>
#include "Origen/Core/dc/MaterialMap.h"
#include "Origen/Core/fn/bof.h"
#include "Origen/Core/io/LibraryIO.h"
#include "Origen/Core/io/StateSetIO.h"
#include "Origen/Core/io/YieldResourceIO.h"
#include "ScaleUtils/IO/DB.h"

Namespaces

 Origen
 

Macros

#define ORIGEN_MACRO_loadMulti(CALL_FUNCTION)
 

Functions

void * loadMulti (const std::string &path, ScaleUtils::IO::DB &opts)
 
bool convertStateSet (StateSet &obj, const std::string &path, ScaleUtils::IO::DB &opts)
 
bool convertLibrary (Library &obj, const std::string &path, ScaleUtils::IO::DB &opts)
 
std::vector< TagManager > selectLibraries (const std::vector< TagManager > &tmList, const TagManager &tmRef)
 Function to take a wide selection of Origen Libraries in memory and only return those that have the ID and Interp tags requested in the provided TagManager. Then checks to make sure the ID tag values match. More...
 
std::vector< SCP_Library > selectLibraries (const std::vector< SCP_Library > &libList, const TagManager &tmRef)
 Function to take a wide selection of Origen Libraries in memory and only return those that have the ID and Interp tags requested in the provided TagManager. Then checks to make sure the ID tag values match. More...
 
std::vector< SP_TagManager > collectLibraries (const std::vector< std::string > &lib_names)
 Function that accepts names of Origen library files on disk which can be full paths if necessary. More...
 
std::vector< SP_TagManager > collectLibrariesParallel (const std::vector< std::string > &lib_names)
 Function that accepts names of Origen library files on disk which can be full paths if necessary. More...
 
void saveStateSet (const MaterialMap &matmap, const std::string &path, ScaleUtils::IO::DB opts)
 saves all isotopics in a MaterialMap to an FT71 (StateSet) More...
 
void saveStateSet (size_t pstart, size_t pend, const MaterialMap &matmap, const std::string &path, ScaleUtils::IO::DB opts)
 
void saveLibraries (size_t pstart, size_t pend, const MaterialMap &matmap, const std::string &pathfmt, ScaleUtils::IO::DB opts)
 
void setAppVersionWrite (bof::BOFWriter &writer, ScaleUtils::IO::DB &opts, const std::string &name)
 

Detailed Description

high-level input/output functions

Macro Definition Documentation

#define ORIGEN_MACRO_loadMulti (   CALL_FUNCTION)

This MACRO enables you to perform a custom call of CALL_FUNCTION on the type returned by loadMulti. It is used in the Obiwan_* classes to handle each particular file type in as straightforward a manner as possible. ORIGEN_MACRO_loadMulti requires the following variables:

  • std::string path="/path/to/your/file"
  • ScaleUtils::IO::DB opts;
  • int status;

Referenced by Obiwan_info::execute(), and Obiwan_view::execute().