![]() |
Simulacrum
1.2
|
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <stdlib.h>
#include <Resources/DICOM/sdicom.h>
#include <Resources/DICOM/sarch.h>
#include <Resources/DICOM/sdicom-net.h>
#include <Core/slicer/slicer.h>
#include <Toolbox/parseArgs/parseArgs.h>
#include <Toolbox/SFile/sfile.h>
#include <Toolbox/cmdProgress/cmdProgress.h>
#include <Toolbox/sysInfo/sysInfo.h>
#include <Toolbox/SLogger/slogger.h>
#include <Resources/spbm.h>
#include <Core/definitions.h>
#include <Core/sabtree.h>
#include <Core/error.h>
Macros | |
#define | DCMTOOL_LIB_INC |
Functions | |
void | doError (const std::string &error, int exitcode=1) |
void | printTag (DCMTag &thetag, const std::string &filter, unsigned depth, bool showstructure, bool dataonly=false) |
void | sniffDICOM (const std::string &potential, bool verbose) |
void | sniffDICOMIdent (const std::string &potential, bool verbose) |
void | doDump (parseArgs &Arguments, SDICOM &todump, bool verbose) |
void | doArchList (SDCMArchNode &archnode, int depth, const std::string &filter) |
void | doWrite (parseArgs &Arguments, SDICOM &towrite) |
bool | checkValid (SDICOM &DCMFile, bool verbose=true) |
const dcm_info_store & | doLookup (DCMDataDic &dict, const std::string &lookupkey) |
std::string | sanitizePath (std::string origpath, DCMDataDic &srcdatadic) |
void | doGetPath (std::vector< std::string > &files, std::vector< std::string > &paths, std::vector< std::string > &filesout, bool verbose, DCMDataDic &datadic, bool dataonly=false) |
bool | doArchiveImport (SDICOMArch &target, std::vector< std::string > &paths, bool verbose) |
void | doDicOut (DCMDataDic &dict, const std::string &lookupkey) |
void | doModify (std::vector< std::string > &keys, std::vector< std::string > &values, std::vector< std::string > &files, bool doinsert, bool verbose, DCMDataDic &srcdatadic, bool valisfile=false) |
void | doRemove (std::vector< std::string > &keys, std::vector< std::string > &files, bool verbose, DCMDataDic &srcdatadic) |
void | doDCMCallback (std::string cmd, bool doimport, SDICOMArch *arch, SDICOM *sourcedcm) |
void | doWritePPM (std::vector< std::string > &dicomfiles, std::string &outfile, bool verbose, bool usewl=false, long int wlcentre=0, long int wlwidth=0) |
int | doGetArgs (std::vector< std::string > &MainArgs, std::string output, bool verbose) |
int | doPutArgs (std::vector< std::string > &MainArgs, std::string target, bool verbose) |
void | doDCMRelay (std::string target, bool remove, bool verbose, SDICOM *srcdicom) |
void | inlinepseudon (SResource *storer, DCMDataDic *DCMDic, NNode *PseudonDB, bool rempriv, bool force, SDICOM *DCMFile, std::function< void(SDICOM *)> nextfunc) |
void | doRecurseArgs (parseArgs &Arguments, std::vector< std::string > &MainArgs, bool recurse, bool verbose, bool dcmonly=false) |
int | doAction (parseArgs &Arguments) |
int | main (int argc, char *argv[]) |
#define DCMTOOL_LIB_INC |
bool checkValid | ( | SDICOM & | DCMFile, |
bool | verbose = true |
||
) |
int doAction | ( | parseArgs & | Arguments | ) |
bool doArchiveImport | ( | SDICOMArch & | target, |
std::vector< std::string > & | paths, | ||
bool | verbose | ||
) |
void doArchList | ( | SDCMArchNode & | archnode, |
int | depth, | ||
const std::string & | filter | ||
) |
void doDCMCallback | ( | std::string | cmd, |
bool | doimport, | ||
SDICOMArch * | arch, | ||
SDICOM * | sourcedcm | ||
) |
void doDCMRelay | ( | std::string | target, |
bool | remove, | ||
bool | verbose, | ||
SDICOM * | srcdicom | ||
) |
void doDicOut | ( | DCMDataDic & | dict, |
const std::string & | lookupkey | ||
) |
void doError | ( | const std::string & | error, |
int | exitcode = 1 |
||
) |
int doGetArgs | ( | std::vector< std::string > & | MainArgs, |
std::string | output, | ||
bool | verbose | ||
) |
void doGetPath | ( | std::vector< std::string > & | files, |
std::vector< std::string > & | paths, | ||
std::vector< std::string > & | filesout, | ||
bool | verbose, | ||
DCMDataDic & | datadic, | ||
bool | dataonly = false |
||
) |
const dcm_info_store& doLookup | ( | DCMDataDic & | dict, |
const std::string & | lookupkey | ||
) |
void doModify | ( | std::vector< std::string > & | keys, |
std::vector< std::string > & | values, | ||
std::vector< std::string > & | files, | ||
bool | doinsert, | ||
bool | verbose, | ||
DCMDataDic & | srcdatadic, | ||
bool | valisfile = false |
||
) |
int doPutArgs | ( | std::vector< std::string > & | MainArgs, |
std::string | target, | ||
bool | verbose | ||
) |
void doRecurseArgs | ( | parseArgs & | Arguments, |
std::vector< std::string > & | MainArgs, | ||
bool | recurse, | ||
bool | verbose, | ||
bool | dcmonly = false |
||
) |
void doRemove | ( | std::vector< std::string > & | keys, |
std::vector< std::string > & | files, | ||
bool | verbose, | ||
DCMDataDic & | srcdatadic | ||
) |
void doWritePPM | ( | std::vector< std::string > & | dicomfiles, |
std::string & | outfile, | ||
bool | verbose, | ||
bool | usewl = false , |
||
long int | wlcentre = 0 , |
||
long int | wlwidth = 0 |
||
) |
void inlinepseudon | ( | SResource * | storer, |
DCMDataDic * | DCMDic, | ||
NNode * | PseudonDB, | ||
bool | rempriv, | ||
bool | force, | ||
SDICOM * | DCMFile, | ||
std::function< void(SDICOM *)> | nextfunc | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
void printTag | ( | DCMTag & | thetag, |
const std::string & | filter, | ||
unsigned | depth, | ||
bool | showstructure, | ||
bool | dataonly = false |
||
) |
std::string sanitizePath | ( | std::string | origpath, |
DCMDataDic & | srcdatadic | ||
) |
void sniffDICOM | ( | const std::string & | potential, |
bool | verbose | ||
) |
void sniffDICOMIdent | ( | const std::string & | potential, |
bool | verbose | ||
) |