OGS
|
Definition in file SWMMConverter.cpp.
#include <tclap/CmdLine.h>
#include "Applications/FileIO/SWMM/SWMMInterface.h"
#include "BaseLib/FileTools.h"
#include "BaseLib/MPI.h"
#include "BaseLib/StringTools.h"
#include "GeoLib/GEOObjects.h"
#include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h"
#include "InfoLib/GitInfo.h"
#include "MeshLib/IO/VtkIO/VtuInterface.h"
#include "MeshLib/Mesh.h"
#include "MeshLib/Properties.h"
Go to the source code of this file.
Functions | |
int | writeGeoOutput (std::string input_file, std::string output_file) |
int | addObjectsToMesh (FileIO::SwmmInterface &swmm, MeshLib::Mesh &mesh, FileIO::SwmmObject const type, std::size_t const timestep) |
int | writeMeshOutput (std::string const &input_file, std::string const &output_file, bool const node_args, bool const link_args) |
void | writeObjectsOfSwmmTypeToCsv (FileIO::SwmmInterface &swmm, FileIO::SwmmObject const type, std::string const &base, std::string const &ext) |
int | writeCsvOutput (std::string input_file, std::string output_file, bool const node_args, bool const link_args, bool const catchment_args, bool const system_args) |
int | main (int argc, char *argv[]) |
int addObjectsToMesh | ( | FileIO::SwmmInterface & | swmm, |
MeshLib::Mesh & | mesh, | ||
FileIO::SwmmObject const | type, | ||
std::size_t const | timestep ) |
Definition at line 36 of file SWMMConverter.cpp.
References FileIO::SwmmInterface::addResultsToMesh(), FileIO::SwmmInterface::getArrayAtTimeStep(), FileIO::SwmmInterface::getArrayName(), and FileIO::SwmmInterface::getNumberOfParameters().
Referenced by writeMeshOutput().
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 160 of file SWMMConverter.cpp.
References ERR(), GitInfoLib::GitInfo::ogs_version, writeCsvOutput(), writeGeoOutput(), and writeMeshOutput().
int writeCsvOutput | ( | std::string | input_file, |
std::string | output_file, | ||
bool const | node_args, | ||
bool const | link_args, | ||
bool const | catchment_args, | ||
bool const | system_args ) |
Definition at line 112 of file SWMMConverter.cpp.
References FileIO::SwmmInterface::create(), BaseLib::dropFileExtension(), BaseLib::getFileExtension(), INFO(), FileIO::LINK, FileIO::NODE, FileIO::SUBCATCHMENT, FileIO::SYSTEM, and writeObjectsOfSwmmTypeToCsv().
Referenced by main().
int writeGeoOutput | ( | std::string | input_file, |
std::string | output_file ) |
Definition at line 23 of file SWMMConverter.cpp.
References FileIO::SwmmInterface::convertSwmmInputToGeometry(), BaseLib::IO::XMLInterface::export_name, BaseLib::extractBaseNameWithoutExtension(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
Referenced by main().
int writeMeshOutput | ( | std::string const & | input_file, |
std::string const & | output_file, | ||
bool const | node_args, | ||
bool const | link_args ) |
Definition at line 55 of file SWMMConverter.cpp.
References addObjectsToMesh(), FileIO::SwmmInterface::create(), BaseLib::dropFileExtension(), BaseLib::getFileExtension(), INFO(), FileIO::LINK, FileIO::NODE, and MeshLib::IO::VtuInterface::writeToFile().
Referenced by main().
void writeObjectsOfSwmmTypeToCsv | ( | FileIO::SwmmInterface & | swmm, |
FileIO::SwmmObject const | type, | ||
std::string const & | base, | ||
std::string const & | ext ) |
Definition at line 96 of file SWMMConverter.cpp.
References FileIO::SwmmInterface::getName(), FileIO::SwmmInterface::getNumberOfObjects(), FileIO::SwmmInterface::swmmObjectTypeToString(), and FileIO::SwmmInterface::writeCsvForObject().
Referenced by writeCsvOutput().