Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "media/midi/midi_port_info.h" | |
| 6 | |
| 7 #include <iostream> | |
| 8 | |
| 9 using std::cout; | |
| 10 | |
| 11 namespace media { | |
| 12 | |
| 13 MIDIPortInfo::MIDIPortInfo() {} | |
| 14 | |
| 15 MIDIPortInfo::MIDIPortInfo(const std::string& in_id, | |
| 16 const std::string& in_manufacturer, | |
| 17 const std::string& in_name, | |
| 18 const std::string& in_version) | |
| 19 : id(in_id), | |
| 20 manufacturer(in_manufacturer), | |
| 21 name(in_name), | |
| 22 version(in_version) {} | |
| 23 | |
| 24 MIDIPortInfo::~MIDIPortInfo() {} | |
| 25 | |
| 26 MIDIPortInfo::MIDIPortInfo(const MIDIPortInfo& info) | |
| 27 : id(info.id), | |
| 28 manufacturer(info.manufacturer), | |
| 29 name(info.name), | |
| 30 version(info.version) {} | |
| 31 | |
| 32 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.
| |
| 33 cout << "======================================================\n"; | |
| 34 cout << "id: " << id << "\n"; | |
| 35 cout << "manufacturer: " << manufacturer << "\n"; | |
| 36 cout << "name: " << name << "\n"; | |
| 37 cout << "version: " << version << "\n"; | |
| 38 cout << "======================================================\n\n"; | |
| 39 } | |
| 40 | |
| 41 } // namespace media | |
| OLD | NEW |