Skip to content

Commit 7b40e3e

Browse files
PYMOL-5361: export BCIF implementation
1 parent 63e312a commit 7b40e3e

File tree

5 files changed

+372
-13
lines changed

5 files changed

+372
-13
lines changed

layer2/CifFile.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <msgpack.hpp>
2828
#endif
2929

30+
using namespace pymol::cif;
31+
3032
namespace pymol {
3133
namespace _cif_detail {
3234

@@ -484,17 +486,6 @@ bool cif_file::parse(char*&& p) {
484486

485487

486488
#if !defined(_PYMOL_NO_MSGPACKC)
487-
enum class DataTypes
488-
{
489-
Int8 = 1,
490-
Int16 = 2,
491-
Int32 = 3,
492-
UInt8 = 4,
493-
UInt16 = 5,
494-
UInt32 = 6,
495-
Float32 = 32,
496-
Float64 = 33,
497-
};
498489

499490
template <typename T>
500491
void decodeAndPushBack(const std::vector<unsigned char>& bytes, std::size_t& i,

layer2/CifFile.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,20 @@ class cif_data {
380380
const cif_detail::cif_str_data* get_saveframe(const char* code) const;
381381
};
382382

383+
namespace cif
384+
{
385+
enum class DataTypes {
386+
Int8 = 1,
387+
Int16 = 2,
388+
Int32 = 3,
389+
UInt8 = 4,
390+
UInt16 = 5,
391+
UInt32 = 6,
392+
Float32 = 32,
393+
Float64 = 33,
394+
};
395+
} // namespace cif
396+
383397
} // namespace pymol
384398

385399
/**

0 commit comments

Comments
 (0)