Skip to content

Util Classes (PzAnalysis) : pz_analysis_hpp created, pz_error updated#7

Merged
tushar3q34 merged 6 commits intoProgramming-Club-Org:devfrom
architabanka:branch1
Aug 13, 2025
Merged

Util Classes (PzAnalysis) : pz_analysis_hpp created, pz_error updated#7
tushar3q34 merged 6 commits intoProgramming-Club-Org:devfrom
architabanka:branch1

Conversation

@architabanka
Copy link
Contributor

@architabanka architabanka commented Aug 11, 2025

PzAnalysisType : An enum class specifying the analysis type, either exact string matching (EXACT) or regular expression matching (REGEX) for now.

PzAnalysisImpl : Defines the interface for analysis implementations that operate on PzBuffer. It requires derived classes to implement the analyze method.

PzAnalysisExact and PzAnalysisRegex: Skeleton of implementations of PzAnalysisImpl for exact string search and regex-based search respectively. Will handle validation, error reporting and analysis logic.

PzAnalysis: The main class that manages analysis operations. It holds a shared pointer to PzCore which provides access to PzBuffer. Based on the requested analysis type, it delegates to the appropriate implementation. Supports move semantics and disallows copying to reduce overhead.

Error handling by reporting issues through PzError.
Fixes #3

Copy link
Member

@tushar3q34 tushar3q34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve the comments and do the needful changes.
I'll review again for the logic part after these changes.

@tushar3q34 tushar3q34 changed the title pz_analysis_hpp created, pz_error updated Util Classes (PzAnalysis) : pz_analysis_hpp created, pz_error updated Aug 11, 2025
Copy link
Member

@tushar3q34 tushar3q34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do the following changes.

Copy link
Member

@tushar3q34 tushar3q34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these minor changes. Except that, LGTM.

Copy link
Member

@Ovetsarilish Ovetsarilish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tushar3q34
Copy link
Member

@architabanka Can you include issue hash in PR description.
After that we can merge ig

@tushar3q34 tushar3q34 merged commit ddf477f into Programming-Club-Org:dev Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Util Class : PzAnalysis

3 participants