Blender  V3.3
abc_reader_archive.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 Kévin Dietrich. All rights reserved. */
3 #pragma once
4 
9 #include <Alembic/Abc/All.h>
10 #include <Alembic/AbcCoreOgawa/All.h>
11 
12 #include <fstream>
13 
14 struct Main;
15 
16 namespace blender::io::alembic {
17 
18 /* Wrappers around input and output archives. The goal is to be able to use
19  * streams so that unicode paths work on Windows (T49112), and to make sure that
20  * the stream objects remain valid as long as the archives are open.
21  */
22 
24  Alembic::Abc::IArchive m_archive;
25  std::ifstream m_infile;
26  std::vector<std::istream *> m_streams;
27 
28  std::vector<ArchiveReader *> m_readers;
29 
30  ArchiveReader(const std::vector<ArchiveReader *> &readers);
31 
32  ArchiveReader(struct Main *bmain, const char *filename);
33 
34  public:
35  static ArchiveReader *get(struct Main *bmain, const std::vector<const char *> &filenames);
36 
38 
39  bool valid() const;
40 
41  Alembic::Abc::IObject getTop();
42 };
43 
44 } // namespace blender::io::alembic
static ArchiveReader * get(struct Main *bmain, const std::vector< const char * > &filenames)
Definition: BKE_main.h:121