MercuryDPM
Alpha
|
This gives functionality to read information from binary formats like STL etc. This class is complete stand-alone and is tested with one any reference to other MecuryDPM code except Vections and Logger. More...
Public Member Functions | |
FileReader (std::string name) | |
Default constuction, requires to users to prove the name of the file that will be opened. More... | |
bool | read () |
~FileReader () | |
Destructor, simple closes the file. More... | |
Private Types | |
enum | Version { Version::P3, Version::P4 } |
The version number of the particle analytics files. More... | |
Private Attributes | |
std::ifstream | pFile_ |
Pointers for the input files. More... | |
std::ifstream | cFile_ |
std::ifstream | wFile_ |
enum FileReader::Version | version_ |
Mercury3D | dpm |
This gives functionality to read information from binary formats like STL etc. This class is complete stand-alone and is tested with one any reference to other MecuryDPM code except Vections and Logger.
Definition at line 39 of file ParticleAnalytics2Mercury.cpp.
|
strongprivate |
The version number of the particle analytics files.
Enumerator | |
---|---|
P3 | |
P4 |
Definition at line 240 of file ParticleAnalytics2Mercury.cpp.
|
inlineexplicit |
Default constuction, requires to users to prove the name of the file that will be opened.
Definition at line 46 of file ParticleAnalytics2Mercury.cpp.
References cFile_, dpm, ERROR, INFO, logger, P3, P4, pFile_, Files::setName(), version_, and wFile_.
|
inline |
Destructor, simple closes the file.
Definition at line 228 of file ParticleAnalytics2Mercury.cpp.
References cFile_, INFO, logger, pFile_, and wFile_.
|
inline |
Definition at line 68 of file ParticleAnalytics2Mercury.cpp.
References cFile_, BaseHandler< T >::clear(), ParticleHandler::clear(), BaseHandler< T >::copyAndAddObject(), dpm, ERROR, ParticleSpecies::getDensity(), BaseParticle::getInteractionWith(), Vec3D::getLength(), DPMBase::getMax(), DPMBase::getMin(), DPMBase::getNtimeSteps(), BaseHandler< T >::getNumberOfObjects(), BaseHandler< T >::getObject(), BaseHandler< T >::getObjectById(), BaseInteractable::getPosition(), BaseParticle::getRadius(), DPMBase::getTime(), INFO, DPMBase::interactionHandler, logger, Vec3D::max(), Vec3D::min(), P3, DPMBase::particleHandler, pFile_, constants::pi, ParticleSpecies::setDensity(), DPMBase::setMax(), DPMBase::setMin(), Files::setNextSavedTimeStep(), BaseInteractable::setPosition(), BaseParticle::setRadius(), BaseWall::setSpecies(), BaseParticle::setSpecies(), BaseHandler< T >::setStorageCapacity(), DPMBase::setTime(), BaseInteractable::setVelocity(), DPMBase::speciesHandler, version_, DPMBase::wallHandler, wFile_, and DPMBase::writeOutputFiles().
Referenced by main().
|
private |
Definition at line 238 of file ParticleAnalytics2Mercury.cpp.
Referenced by FileReader(), read(), and ~FileReader().
|
private |
Definition at line 242 of file ParticleAnalytics2Mercury.cpp.
Referenced by FileReader(), and read().
|
private |
Pointers for the input files.
Definition at line 238 of file ParticleAnalytics2Mercury.cpp.
Referenced by FileReader(), read(), and ~FileReader().
|
private |
Referenced by FileReader(), and read().
|
private |
Definition at line 238 of file ParticleAnalytics2Mercury.cpp.
Referenced by FileReader(), read(), and ~FileReader().