X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=alien.h;h=7447f953cc9ec3e4ee9b987853cb4b94f1629d9f;hb=cf035fa1849a5e65c0d636ce2718bc2c85994680;hp=40ef09ab838b9c21b5860549acfddedd9e680b3a;hpb=121a58d72f3b5e537007072f93397f6e6661fb90;p=odcread.git diff --git a/alien.h b/alien.h index 40ef09a..7447f95 100644 --- a/alien.h +++ b/alien.h @@ -5,6 +5,7 @@ #include #include #include +#include namespace odc { @@ -13,6 +14,7 @@ namespace odc { */ struct AlienComponent { virtual std::string toString() = 0; + virtual std::string toPlainText() = 0; }; /** @@ -25,26 +27,28 @@ struct AlienPiece : public AlienComponent { AlienPiece(const char * const data, const size_t len); virtual std::string toString(); + virtual std::string toPlainText(); }; /** * Store component of an alien store */ struct AlienPart : public AlienComponent { - Store * const store; + Store * const d_store; - AlienPart(Store * const _store); + AlienPart(Store * const store); virtual std::string toString(); + virtual std::string toPlainText(); }; class Alien : public Store { - SHORTCHAR **d_path; + const TypePath d_path; std::vector d_comps; public: - Alien(INTEGER id, SHORTCHAR **path); + Alien(INTEGER id, const TypePath &path); std::vector & getComponents(); @@ -53,6 +57,7 @@ class Alien : public Store { // comps-: AlienComp (** the constituent components of this alien store **) virtual std::string toString(); + virtual std::string toPlainText(); }; }