Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly remove DataTemplates #110

Open
8 tasks
ogasser opened this issue Mar 13, 2018 · 4 comments
Open
8 tasks

Properly remove DataTemplates #110

ogasser opened this issue Mar 13, 2018 · 4 comments

Comments

@ogasser
Copy link
Contributor

ogasser commented Mar 13, 2018

We should go through the code to remove all DataTemplates code. PR #69 was a good first step, but there is more to remove :)

List of files with DataTemplates code:

  • src/modules/ipfix/aggregator/BaseHashtable.cpp
  • src/modules/ipfix/aggregator/BaseHashtable.h
  • src/modules/ipfix/database/IpfixDbWriterMongo.cpp
  • src/modules/ipfix/database/IpfixFlowInspectorExporter.cpp

Comments in files mentioning DataTemplates:

  • src/common/ipfixlolib/ipfixlolib.c
  • src/common/ipfixlolib/ipfixlolib.h
  • src/modules/ipfix/TemplateBuffer.cpp
  • src/modules/ipfix/IpfixPrinter.cpp
@nickbroon
Copy link
Contributor

i might be mis-understanding the code, but in the case of src/modules/ipfix/aggregator/BaseHashtable.cpp and src/modules/ipfix/aggregator/BaseHashtable.h I think the dataTemplate references are actually just the regular templates that describe the data records in the hash tables. I don't believe they are actually represent IpfixDataTemplate. Perhaps it should be called Template in this use?

@ogasser
Copy link
Contributor Author

ogasser commented Mar 14, 2018

@nickbroon yep, if we mean regular templates we should rename the DataTemplate to Template.

@nickbroon
Copy link
Contributor

nickbroon commented Jan 8, 2019

'dataTemplateInfo' could be replaced with 'templateInfo' using sed.
'dataTemplate' could not be replace with 'template' as 'template' is C++ reserved word. It could be replace with 'Template' but that does not follow camalCase convention for variables and would probably still be rather confusing. Suggestions welcome. (I think I'm inclined to think that dataTemplate is reasonable here as it's a template that describes ipfix data, which could be contrasted with say an optionTemplate which describes ipfix options. https://www.google.com/search?q=ipfix+%22data+template%22 )

@ogasser
Copy link
Contributor Author

ogasser commented Jan 8, 2019

dataTemplate sounds good to me 👍

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

No branches or pull requests

2 participants