XdmfDataItem.hpp 726 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
/*
 * XdmfDataItem.hpp
 *
 *
 *  Created on: Jan 25, 2010
 *      Author: kleiter
 */

#ifndef XDMFDATAITEM_HPP_
#define XDMFDATAITEM_HPP_

#include "XdmfDataItemType.hpp"
#include "XdmfItem.hpp"

class XdmfDataItem : public XdmfItem {

public:

	XdmfNewMacro(XdmfDataItem);

	template <typename T> void setData(T * dataPointer);

	//int setData(int * dataPointer)

	std::string printSelf() const;

	void write(boost::shared_ptr<XdmfVisitor> visitor) const;

protected:

	XdmfDataItem();
	virtual ~XdmfDataItem();

private:

	XdmfDataItem(const XdmfDataItem&);  // Not implemented.
	void operator=(const XdmfDataItem&);  // Not implemented.

	int* mDataPointer;
	XdmfDataItemType mDataType;
};

#endif /* XDMFDATAITEM_HPP_ */