Skip to content

Commit

Permalink
Rename IrStreamType -> StreamType in the ir namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Nov 8, 2024
1 parent 49a72c3 commit 12dfb9e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/clp_ffi_js/ir/StreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ EMSCRIPTEN_BINDINGS(ClpStreamReader) {
emscripten::register_type<clp_ffi_js::ir::ReaderOptions>("{timestampKey: string} | null");

// JS types used as outputs
emscripten::enum_<clp_ffi_js::ir::IrStreamType>("IrStreamType")
.value("STRUCTURED", clp_ffi_js::ir::IrStreamType::Structured)
.value("UNSTRUCTURED", clp_ffi_js::ir::IrStreamType::Unstructured);
emscripten::enum_<clp_ffi_js::ir::StreamType>("IrStreamType")
.value("STRUCTURED", clp_ffi_js::ir::StreamType::Structured)
.value("UNSTRUCTURED", clp_ffi_js::ir::StreamType::Unstructured);
emscripten::register_type<clp_ffi_js::ir::DecodedResultsTsType>(
"Array<[string, number, number, number]>"
);
Expand Down
4 changes: 2 additions & 2 deletions src/clp_ffi_js/ir/StreamReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ EMSCRIPTEN_DECLARE_VAL_TYPE(ReaderOptions);
EMSCRIPTEN_DECLARE_VAL_TYPE(DecodedResultsTsType);
EMSCRIPTEN_DECLARE_VAL_TYPE(FilteredLogEventMapTsType);

enum class IrStreamType : uint8_t {
enum class StreamType : uint8_t {
Structured,
Unstructured,
};
Expand Down Expand Up @@ -57,7 +57,7 @@ class StreamReader {
auto operator=(StreamReader&&) -> StreamReader& = delete;

// Methods
[[nodiscard]] virtual auto get_ir_stream_type() const -> IrStreamType = 0;
[[nodiscard]] virtual auto get_ir_stream_type() const -> StreamType = 0;

/**
* @return The number of events buffered.
Expand Down
4 changes: 2 additions & 2 deletions src/clp_ffi_js/ir/StructuredIrStreamReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ class StructuredIrStreamReader : public StreamReader {
// Delete move assignment operator since it's also disabled in `clp::ir::LogEventDeserializer`.
auto operator=(StructuredIrStreamReader&&) -> StructuredIrStreamReader& = delete;

[[nodiscard]] auto get_ir_stream_type() const -> IrStreamType override {
return IrStreamType::Structured;
[[nodiscard]] auto get_ir_stream_type() const -> StreamType override {
return StreamType::Structured;
}

[[nodiscard]] auto get_num_events_buffered() const -> size_t override;
Expand Down
4 changes: 2 additions & 2 deletions src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class UnstructuredIrStreamReader : public StreamReader {
clp::Array<char> data_array
) -> UnstructuredIrStreamReader;

[[nodiscard]] auto get_ir_stream_type() const -> IrStreamType override {
return IrStreamType::Unstructured;
[[nodiscard]] auto get_ir_stream_type() const -> StreamType override {
return StreamType::Unstructured;
}

[[nodiscard]] auto get_num_events_buffered() const -> size_t override;
Expand Down

0 comments on commit 12dfb9e

Please sign in to comment.