ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Raw2InteractionReader.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef ESYS_LSMRAW2INTERACTIONREADER_H
14
#define ESYS_LSMRAW2INTERACTIONREADER_H
15
16
#include "
Foundation/vec3.h
"
17
#include "
Foundation/StringUtil.h
"
18
#include "
Tools/StressCalculator/Contact.h
"
19
20
#include <iostream>
21
22
namespace
esys
23
{
24
namespace
lsm
25
{
26
class
Raw2InteractionReader
27
{
28
public
:
29
typedef
Contact
InteractionData
;
30
31
Raw2InteractionReader
(std::istream &iStream)\
32
:
m_pIStream
(&iStream)
33
{
34
}
35
36
bool
hasNext
()
const
37
{
38
return
((
m_pIStream
->peek()) != std::istream::traits_type::eof());
39
}
40
41
InteractionData
next
()
42
{
43
InteractionData
data;
44
data.
read
(*
m_pIStream
);
45
return
data;
46
}
47
48
private
:
49
Raw2InteractionReader
();
50
Raw2InteractionReader
(
const
Raw2InteractionReader
&reader);
51
Raw2InteractionReader
&
operator=
(
const
Raw2InteractionReader
&reader);
52
53
std::istream *
m_pIStream
;
54
};
55
}
56
}
57
58
#endif
Tools
StressCalculator
Raw2InteractionReader.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1