-
- /// Returns the TypeInfo of the BlackBoxDescriptor which created this descriptor
- TypeInfo GetCreatorTypeInfo() { return mCreatorTypeInfo; }
- /// Returns the name of the output
- const std::string& GetName() const { return mName; }
- /// Returns the description of the output
- const std::string& GetDescription() const { return mDescription; }
- /// Returns the type of the output
- virtual TypeInfo GetTypeInfo() const = 0;
- /// Returns the name of the type of the output
- virtual std::string GetTypeName() const = 0;
- /// Returns the name of the type of the output
- virtual std::string GetHumanTypeName() const = 0;
- /// Returns true iff the type is a pointer to class
- virtual bool IsPointerType() const = 0;
- /// Returns true iff the input must be copied
- /// by the copy constructor of the box
- bool GetCopyConstruct() const { return mCopyConstruct; }
-
-
- private:
- /// Default ctor is private
- BlackBoxOutputDescriptor() : mCreatorTypeInfo(typeid(void)),
- mName(""), mDescription("") {}
-
- /// The TypeInfo of the BlackBoxDescriptor which created this descriptor
- TypeInfo mCreatorTypeInfo;
- /// The name of the output
- std::string mName;
- /// The description of the output
- std::string mDescription;
- /// Does the output has to be copied by copy constructor
- /// default = true. Must be set to false if it is
- /// initialized by the user in bbUserCopyConstructor
- /// (typically if it is a pointer)
- bool mCopyConstruct;