-SRCS += alien/alien.cc
+SRCS += alien/alien.cc alien/piece.cc alien/part.cc
-#include "alien/alien.h"
+#include "alien/alien.ih"
namespace odc {
-AlienPiece::AlienPiece(const char * const _data, const size_t _len): data(_data), len(_len) {}
-
-std::string AlienPiece::toString() {
- return std::string("AlienPiece");
-}
-
-void AlienPiece::accept(Visitor &visitor) const {
-}
-
-AlienPart::AlienPart(Store * const store): d_store(store) {}
-
-std::string AlienPart::toString() {
- if (d_store != 0)
- return d_store->toString();
- else
- return "NULL";
-}
-
-void AlienPart::accept(Visitor &visitor) const {
- if (d_store != 0) {
- d_store->accept(visitor);
- }
-}
-
Alien::Alien(INTEGER id, const TypePath &path): Store(id), d_path(path), d_comps() {}
std::vector<AlienComponent*> & Alien::getComponents() {
}
}
-}
+} // namespace odc
#include "oberon.h"
#include "store/store.h"
-#include "visitor/visitor.h"
-#include <iostream>
#include <vector>
#include <string>
namespace odc {
+class Visitor;
+
/**
* Part of an alien store
*/
* Totally unstructured part of an alien store
*/
struct AlienPiece : public AlienComponent {
- const char * const data;
- const size_t len;
+ char const * const data;
+ size_t const len;
AlienPiece(const char * const data, const size_t len);
--- /dev/null
+#include <iostream>
+
+#include "alien/alien.h"
+#include "visitor/visitor.h"
--- /dev/null
+#include "alien/alien.ih"
+
+namespace odc {
+
+AlienPart::AlienPart(Store * const store): d_store(store) {}
+
+std::string AlienPart::toString() {
+ if (d_store != 0)
+ return d_store->toString();
+ else
+ return "NULL";
+}
+
+void AlienPart::accept(Visitor &visitor) const {
+ if (d_store != 0) {
+ d_store->accept(visitor);
+ }
+}
+
+} // namespace odc
--- /dev/null
+#include "alien/alien.ih"
+
+namespace odc {
+
+AlienPiece::AlienPiece(char const * const _data, const size_t _len): data(_data), len(_len) {}
+
+std::string AlienPiece::toString() {
+ return std::string("AlienPiece");
+}
+
+void AlienPiece::accept(Visitor &visitor) const {
+}
+
+} // namespace odc