Index: media/midi/midi_port_info.cc |
diff --git a/media/midi/midi_port_info.cc b/media/midi/midi_port_info.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8d9ae1516c8538d9f63c930a5f5ee270acfeb7d2 |
--- /dev/null |
+++ b/media/midi/midi_port_info.cc |
@@ -0,0 +1,41 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "media/midi/midi_port_info.h" |
+ |
+#include <iostream> |
+ |
+using std::cout; |
+ |
+namespace media { |
+ |
+MIDIPortInfo::MIDIPortInfo() {} |
+ |
+MIDIPortInfo::MIDIPortInfo(const std::string& in_id, |
+ const std::string& in_manufacturer, |
+ const std::string& in_name, |
+ const std::string& in_version) |
+ : id(in_id), |
+ manufacturer(in_manufacturer), |
+ name(in_name), |
+ version(in_version) {} |
+ |
+MIDIPortInfo::~MIDIPortInfo() {} |
+ |
+MIDIPortInfo::MIDIPortInfo(const MIDIPortInfo& info) |
+ : id(info.id), |
+ manufacturer(info.manufacturer), |
+ name(info.name), |
+ version(info.version) {} |
+ |
+void MIDIPortInfo::Print() const { |
scherkus (not reviewing)
2013/06/14 00:54:48
OOC do you use this somewhere in production code o
Chris Rogers
2013/06/20 17:41:33
Done.
|
+ cout << "======================================================\n"; |
+ cout << "id: " << id << "\n"; |
+ cout << "manufacturer: " << manufacturer << "\n"; |
+ cout << "name: " << name << "\n"; |
+ cout << "version: " << version << "\n"; |
+ cout << "======================================================\n\n"; |
+} |
+ |
+} // namespace media |