{"id":847,"date":"2015-11-03T11:25:58","date_gmt":"2015-11-03T11:25:58","guid":{"rendered":"http:\/\/coolt.ch\/notizen\/?p=847"},"modified":"2015-11-03T11:25:58","modified_gmt":"2015-11-03T11:25:58","slug":"objekt-bearbeiten","status":"publish","type":"post","link":"https:\/\/coolt.ch\/notizen\/objekt-bearbeiten\/","title":{"rendered":"Objekt bearbeiten"},"content":{"rendered":"<p><strong><a href=\"http:\/\/coolt.ch\/notizen\/class-public-and-private\/\">Klasse<\/a><\/strong><\/p>\n<pre class=\"lang:sh decode:true\">class MidiData {\r\n.     public: \r\n.            \/\/ varibale\r\n.            int pin;\r\n.            double version;\r\n.            int wait;        \/\/ in ms\r\n.\r\n.            \/\/ functions\r\n.            MidiData(int pin, double version, int wait);   \r\n.            string readStream( steam io);\r\n.            string extractdata( string s);\r\n}<\/pre>\n<p><strong><a href=\"http:\/\/coolt.ch\/notizen\/constructor-c\/\">Objekt definieren<\/a><\/strong><\/p>\n<pre class=\"lang:sh decode:true\">MidiData <strong>system_2<\/strong>{ 8, 14.04, 5 }<\/pre>\n<p><strong>system_2<\/strong> ist ein Objekt der Klasse MidireadData. Im Objekt ist definiert, wo und mit welcher Version Midi gelesen wird.<\/p>\n<p><strong>Objeket bearbeiten<br \/>\n<\/strong><\/p>\n<pre class=\"lang:sh decode:true\">system_2.pin = 10;    \/\/ change data pin\r\nsystem_2.wait = 10;   \/\/ change wait time<\/pre>\n<p>Zur Verarbeitung der Klasse wurden extra Memberfunktionen definiert.<\/p>\n<pre class=\"lang:sh decode:true\">string in_pin8 = <strong>system_2<\/strong>.readStream( input_8);\r\nstring data_pin8 = <strong>system_2<\/strong>.extractdata( in_pin8);<\/pre>\n<p>\u00dcber die Objektvariable <strong>system_2<\/strong> k\u00f6nnen die Memberfunktionen aufgerufen werden.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Klasse class MidiData { . public: . \/\/ varibale . int pin; . double version; . int wait; \/\/ in ms . . \/\/ functions . MidiData(int pin, double version, int wait); . string readStream( steam io); . string extractdata( string s); } Objekt definieren MidiData system_2{ 8, 14.04, 5 } system_2 ist ein Objekt &hellip; <a href=\"https:\/\/coolt.ch\/notizen\/objekt-bearbeiten\/\" class=\"more-link\"><span class=\"screen-reader-text\">Objekt bearbeiten<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[29,65],"tags":[71,72],"_links":{"self":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/847"}],"collection":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/comments?post=847"}],"version-history":[{"count":3,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/847\/revisions"}],"predecessor-version":[{"id":865,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/847\/revisions\/865"}],"wp:attachment":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/media?parent=847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/categories?post=847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/tags?post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}