New tool for analyzing real data. Factorized the getopt generation procedure in CMake

This commit is contained in:
Your Name 2011-02-24 12:07:37 -05:00
parent 07a3be4db0
commit 3e638974d3
2 changed files with 80 additions and 0 deletions

23
mytools/particleInfo.hpp Normal file
View file

@ -0,0 +1,23 @@
#ifndef _PARTICLE_INFO_HEADER_HPP
#define _PARTICLE_INFO_HEADER_HPP
#include <vector>
#include <string>
struct ParticleData {
float x, y, z;
};
typedef std::vector<ParticleData> ParticleVector;
struct ParticleInfo
{
ParticleVector particles;
float ranges[3][2];
};
bool loadParticleInfo(ParticleInfo& info,
const std::string& particles,
const std::string& extra_info);
#endif