SEP Solver Library
1.0
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
base
dataContainer.h
Go to the documentation of this file.
1
#ifndef DATACONTAINER_H
2
#define DATACONTAINER_H 1
3
#include <stdio.h>
4
#include <string.h>
5
namespace
SEP {
6
7
class
dataContainer
{
8
public
:
9
10
dataContainer
(){ ;}
11
// virtual void *getFloatPtr()=0; // could get rid of
12
virtual
void
my_type
()=0;
// makes the class abstract
13
virtual
~dataContainer
(){;}
// Default destructor
14
char
name
[1000];
15
private
:
16
};
17
class
MultiDataContainer
:
public
dataContainer
{
18
public
:
19
20
MultiDataContainer
(){;}
21
MultiDataContainer
(
dataContainer
*d1,
dataContainer
*d2){
22
dat1=d1;
23
dat2=d2;
24
}
25
virtual
void
my_type
(){
26
dat1->
my_type
();
27
dat2->
my_type
();
28
}
29
dataContainer
*
getData1
(){
return
dat1;}
30
dataContainer
*
getData2
(){
return
dat2;}
31
virtual
~MultiDataContainer
(){;}
32
private
:
33
dataContainer
*dat1,*dat2;
34
};
35
36
}
37
#endif
Generated by
1.8.4