Program: bbtk
Module: $RCSfile: bbtkBlackBoxDescriptor.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:12 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2012/11/14 07:12:00 $
+ Version: $Revision: 1.12 $
=========================================================================*/
/* ---------------------------------------------------------------------
}
Kind;
+ typedef enum
+ {
+ TS_BINARY=0,
+ TS_SCRIPT_COMPLEXBOX=1,
+ TS_SCRIPT_APPLICATION=2
+ } TypeOfScript;
+
/// Releases a descriptor
// static void Release(BlackBoxDescriptor::WeakPointer);
///
virtual void Check(bool recursive=true) const;
+
+
+ /// Sets the name of the script file from which it is defined
+ void SetScriptFileName(const std::string& n) { mScriptFileName = n; }
+ /// Gets the name of the script file from which it is defined
+ std::string GetScriptFileName() const { return mScriptFileName; }
+
+
+
+
+ /// Gets the type of script BINARY, SCRIPT_COMPLEXBOX, SCRIPT_APPLICATION
+ TypeOfScript GetTypeOfScript() { return mTypeOfScript; };
+ void SetTypeOfScript(TypeOfScript type) { mTypeOfScript=type; };
+ bool IsTypeOfScript_Application();
+ bool IsTypeOfScript_ComplexBox();
+ void SetTypeOfScript_Application();
+
+
+
+
+ private:
+
+ TypeOfScript mTypeOfScript;
+
+ /// The name of the script file from which it was created
+ std::string mScriptFileName;
+
+
+
protected:
/// Adds an input descriptor
void AddInputDescriptor( BlackBoxInputDescriptor *d )