Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related Output.h00001 // 00002 // SYNTOPIA. See http://Syntopia.sourceforge.net for details and documentation. 00003 // 00004 // Author of this file: Mikael Hvidtfeldt Christensen (mikaelc@users.sourceforge.net) 00005 // 00006 00007 00008 #ifndef __Output__ 00009 #define __Output__ 00010 00011 #include "Input.h" 00012 #include "Utils.h" 00013 #include <string> 00014 00015 using namespace std; 00016 using namespace Utils; 00017 00018 namespace SynthCore { 00019 00020 class Module; 00021 class Input; 00022 00023 00025 00033 class Output { 00034 private: 00035 00036 public: 00037 00039 float value; 00040 00042 Module * HostModule; 00043 00048 void ConnectTo(Input * I); 00049 00051 Output(Module* host); 00052 00054 ~Output() { ; } 00055 00057 float read() {return value;}; 00058 00060 void loadXML(string tagName, XMLNode * n); 00061 00063 std::string getXML(std::string tag, int indent = 0) ; 00064 00065 00067 inline void write(float val) { 00068 value = val; 00069 } 00070 00071 }; 00072 00073 }; // end of namespace: SynthCore 00074 00075 #endif Docs made by Doxygen. Email: Mikael Christensen |