Skip to content

Commit

Permalink
Update translation units for style guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored and dnfield committed Apr 27, 2022
1 parent 98c18b3 commit 147e64f
Show file tree
Hide file tree
Showing 16 changed files with 450 additions and 417 deletions.
3 changes: 3 additions & 0 deletions impeller/archivist/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ impeller_component("archivist") {
public = [ "archive.h" ]

sources = [
"archivable.cc",
"archivable.h",
"archive.cc",
"archive.h",
"archive_class_registration.cc",
"archive_class_registration.h",
"archive_database.cc",
Expand Down
11 changes: 11 additions & 0 deletions impeller/archivist/archivable.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2013 The Flutter 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 "impeller/archivist/archivable.h"

namespace impeller {

//

} // namespace impeller
28 changes: 28 additions & 0 deletions impeller/archivist/archivable.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#pragma once

#include <cstdint>

namespace impeller {

class ArchiveLocation;

//------------------------------------------------------------------------------
/// @brief Instances of `Archivable`s can be read from and written to a
/// persistent archive.
///
class Archivable {
public:
using ArchiveName = uint64_t;

virtual ArchiveName GetArchiveName() const = 0;

virtual bool Write(ArchiveLocation& item) const = 0;

virtual bool Read(ArchiveLocation& item) = 0;
};

} // namespace impeller
Loading

0 comments on commit 147e64f

Please sign in to comment.