OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DBUS_PROPERTY_H_ | 5 #ifndef DBUS_PROPERTY_H_ |
6 #define DBUS_PROPERTY_H_ | 6 #define DBUS_PROPERTY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
402 // Current cached value of the property. | 402 // Current cached value of the property. |
403 T value_; | 403 T value_; |
404 | 404 |
405 // Replacement value of the property. | 405 // Replacement value of the property. |
406 T set_value_; | 406 T set_value_; |
407 }; | 407 }; |
408 | 408 |
409 template <> Property<uint8>::Property(); | 409 template <> Property<uint8>::Property(); |
410 template <> bool Property<uint8>::PopValueFromReader(MessageReader* reader); | 410 template <> bool Property<uint8>::PopValueFromReader(MessageReader* reader); |
411 template <> void Property<uint8>::AppendSetValueToWriter(MessageWriter* writer); | 411 template <> void Property<uint8>::AppendSetValueToWriter(MessageWriter* writer); |
412 template class CHROME_DBUS_EXPORT Property<uint8>; | |
Nico
2014/07/23 05:07:16
This doesn't look right to me. I think you want a
tzik
2014/07/23 05:29:01
Ah, right. This shouldn't be instantiated in other
| |
412 | 413 |
413 template <> Property<bool>::Property(); | 414 template <> Property<bool>::Property(); |
414 template <> bool Property<bool>::PopValueFromReader(MessageReader* reader); | 415 template <> bool Property<bool>::PopValueFromReader(MessageReader* reader); |
415 template <> void Property<bool>::AppendSetValueToWriter(MessageWriter* writer); | 416 template <> void Property<bool>::AppendSetValueToWriter(MessageWriter* writer); |
417 template class CHROME_DBUS_EXPORT Property<bool>; | |
416 | 418 |
417 template <> Property<int16>::Property(); | 419 template <> Property<int16>::Property(); |
418 template <> bool Property<int16>::PopValueFromReader(MessageReader* reader); | 420 template <> bool Property<int16>::PopValueFromReader(MessageReader* reader); |
419 template <> void Property<int16>::AppendSetValueToWriter(MessageWriter* writer); | 421 template <> void Property<int16>::AppendSetValueToWriter(MessageWriter* writer); |
422 template class CHROME_DBUS_EXPORT Property<int16>; | |
420 | 423 |
421 template <> Property<uint16>::Property(); | 424 template <> Property<uint16>::Property(); |
422 template <> bool Property<uint16>::PopValueFromReader(MessageReader* reader); | 425 template <> bool Property<uint16>::PopValueFromReader(MessageReader* reader); |
423 template <> void Property<uint16>::AppendSetValueToWriter( | 426 template <> void Property<uint16>::AppendSetValueToWriter( |
424 MessageWriter* writer); | 427 MessageWriter* writer); |
428 template class CHROME_DBUS_EXPORT Property<uint16>; | |
425 | 429 |
426 template <> Property<int32>::Property(); | 430 template <> Property<int32>::Property(); |
427 template <> bool Property<int32>::PopValueFromReader(MessageReader* reader); | 431 template <> bool Property<int32>::PopValueFromReader(MessageReader* reader); |
428 template <> void Property<int32>::AppendSetValueToWriter(MessageWriter* writer); | 432 template <> void Property<int32>::AppendSetValueToWriter(MessageWriter* writer); |
433 template class CHROME_DBUS_EXPORT Property<int32>; | |
429 | 434 |
430 template <> Property<uint32>::Property(); | 435 template <> Property<uint32>::Property(); |
431 template <> bool Property<uint32>::PopValueFromReader(MessageReader* reader); | 436 template <> bool Property<uint32>::PopValueFromReader(MessageReader* reader); |
432 template <> void Property<uint32>::AppendSetValueToWriter( | 437 template <> void Property<uint32>::AppendSetValueToWriter( |
433 MessageWriter* writer); | 438 MessageWriter* writer); |
439 template class CHROME_DBUS_EXPORT Property<uint32>; | |
434 | 440 |
435 template <> Property<int64>::Property(); | 441 template <> Property<int64>::Property(); |
436 template <> bool Property<int64>::PopValueFromReader(MessageReader* reader); | 442 template <> bool Property<int64>::PopValueFromReader(MessageReader* reader); |
437 template <> void Property<int64>::AppendSetValueToWriter(MessageWriter* writer); | 443 template <> void Property<int64>::AppendSetValueToWriter(MessageWriter* writer); |
444 template class CHROME_DBUS_EXPORT Property<int64>; | |
438 | 445 |
439 template <> Property<uint64>::Property(); | 446 template <> Property<uint64>::Property(); |
440 template <> bool Property<uint64>::PopValueFromReader(MessageReader* reader); | 447 template <> bool Property<uint64>::PopValueFromReader(MessageReader* reader); |
441 template <> void Property<uint64>::AppendSetValueToWriter( | 448 template <> void Property<uint64>::AppendSetValueToWriter( |
442 MessageWriter* writer); | 449 MessageWriter* writer); |
450 template class CHROME_DBUS_EXPORT Property<uint64>; | |
443 | 451 |
444 template <> Property<double>::Property(); | 452 template <> Property<double>::Property(); |
445 template <> bool Property<double>::PopValueFromReader(MessageReader* reader); | 453 template <> bool Property<double>::PopValueFromReader(MessageReader* reader); |
446 template <> void Property<double>::AppendSetValueToWriter( | 454 template <> void Property<double>::AppendSetValueToWriter( |
447 MessageWriter* writer); | 455 MessageWriter* writer); |
456 template class CHROME_DBUS_EXPORT Property<double>; | |
448 | 457 |
449 template <> bool Property<std::string>::PopValueFromReader( | 458 template <> bool Property<std::string>::PopValueFromReader( |
450 MessageReader* reader); | 459 MessageReader* reader); |
451 template <> void Property<std::string>::AppendSetValueToWriter( | 460 template <> void Property<std::string>::AppendSetValueToWriter( |
452 MessageWriter* writer); | 461 MessageWriter* writer); |
462 template class CHROME_DBUS_EXPORT Property<std::string>; | |
453 | 463 |
454 template <> bool Property<ObjectPath>::PopValueFromReader( | 464 template <> bool Property<ObjectPath>::PopValueFromReader( |
455 MessageReader* reader); | 465 MessageReader* reader); |
456 template <> void Property<ObjectPath>::AppendSetValueToWriter( | 466 template <> void Property<ObjectPath>::AppendSetValueToWriter( |
457 MessageWriter* writer); | 467 MessageWriter* writer); |
468 template class CHROME_DBUS_EXPORT Property<ObjectPath>; | |
458 | 469 |
459 template <> bool Property<std::vector<std::string> >::PopValueFromReader( | 470 template <> bool Property<std::vector<std::string> >::PopValueFromReader( |
460 MessageReader* reader); | 471 MessageReader* reader); |
461 template <> void Property<std::vector<std::string> >::AppendSetValueToWriter( | 472 template <> void Property<std::vector<std::string> >::AppendSetValueToWriter( |
462 MessageWriter* writer); | 473 MessageWriter* writer); |
474 template class CHROME_DBUS_EXPORT Property<std::vector<std::string> >; | |
463 | 475 |
464 template <> bool Property<std::vector<ObjectPath> >::PopValueFromReader( | 476 template <> bool Property<std::vector<ObjectPath> >::PopValueFromReader( |
465 MessageReader* reader); | 477 MessageReader* reader); |
466 template <> void Property<std::vector<ObjectPath> >::AppendSetValueToWriter( | 478 template <> void Property<std::vector<ObjectPath> >::AppendSetValueToWriter( |
467 MessageWriter* writer); | 479 MessageWriter* writer); |
480 template class CHROME_DBUS_EXPORT Property<std::vector<ObjectPath> >; | |
468 | 481 |
469 template <> bool Property<std::vector<uint8> >::PopValueFromReader( | 482 template <> bool Property<std::vector<uint8> >::PopValueFromReader( |
470 MessageReader* reader); | 483 MessageReader* reader); |
471 template <> void Property<std::vector<uint8> >::AppendSetValueToWriter( | 484 template <> void Property<std::vector<uint8> >::AppendSetValueToWriter( |
472 MessageWriter* writer); | 485 MessageWriter* writer); |
486 template class CHROME_DBUS_EXPORT Property<std::vector<uint8> >; | |
473 | 487 |
474 } // namespace dbus | 488 } // namespace dbus |
475 | 489 |
476 #endif // DBUS_PROPERTY_H_ | 490 #endif // DBUS_PROPERTY_H_ |
OLD | NEW |