Skip to content

Commit

Permalink
refactor(libsinsp): make base transform class pure virtual
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Jan 8, 2025
1 parent c9f9e14 commit a955289
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ limitations under the License.

sinsp_filter_transformer::~sinsp_filter_transformer() {}

bool sinsp_filter_transformer::transform_type(ppm_param_type& t, uint32_t& flags) const {
throw_unsupported_err(m_type);
return false;
}

bool sinsp_filter_transformer::string_transformer(std::vector<extract_value_t>& vec,
ppm_param_type t,
str_transformer_func_t f) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class sinsp_filter_transformer {

virtual ~sinsp_filter_transformer();

virtual bool transform_type(ppm_param_type& t, uint32_t& flags) const;
virtual bool transform_type(ppm_param_type& t, uint32_t& flags) const = 0;

virtual bool transform_values(std::vector<extract_value_t>& vals,
ppm_param_type& t,
Expand Down

0 comments on commit a955289

Please sign in to comment.