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(const std::string& id, |
| 14 const std::string& manufacturer, |
| 15 const std::string& name, |
| 16 const std::string& version) |
| 17 : id_(id), |
| 18 manufacturer_(manufacturer), |
| 19 name_(name), |
| 20 version_(version) {} |
| 21 |
| 22 MIDIPortInfo::~MIDIPortInfo() {} |
| 23 |
| 24 MIDIPortInfo::MIDIPortInfo(const MIDIPortInfo& info) |
| 25 : id_(info.id_), |
| 26 manufacturer_(info.manufacturer_), |
| 27 name_(info.name_), |
| 28 version_(info.version_) {} |
| 29 |
| 30 void MIDIPortInfo::Print() const { |
| 31 cout << "======================================================\n"; |
| 32 cout << "id: " << id_ << "\n"; |
| 33 cout << "manufacturer: " << manufacturer_ << "\n"; |
| 34 cout << "name: " << name_ << "\n"; |
| 35 cout << "version: " << version_ << "\n"; |
| 36 cout << "======================================================\n\n"; |
| 37 } |
| 38 |
| 39 } // namespace media |
OLD | NEW |