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

Moved cache file management to Scene class #261

Merged
merged 2 commits into from
Dec 19, 2017
Merged

Conversation

favreau
Copy link
Member

@favreau favreau commented Dec 18, 2017

No description provided.

@favreau favreau requested a review from tribal-tec December 18, 2017 16:33
@@ -38,6 +38,7 @@ struct Cone
{
}

Cone() {}
Copy link
Contributor

Choose a reason for hiding this comment

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

= default

}

const size_t version = CACHE_VERSION;
file.write((char*)&version, sizeof(size_t));
Copy link
Contributor

Choose a reason for hiding this comment

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

why not file << version? everywhere in this file?

Copy link
Member Author

@favreau favreau Dec 19, 2017

Choose a reason for hiding this comment

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

Not all elements have this operator implemented. Some of those elements being in the process of being replaced, I will leave your comments to a later PR if that's acceptable?


// File version
size_t version;
file.read((char*)&version, sizeof(size_t));
Copy link
Contributor

Choose a reason for hiding this comment

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

also works backwards :) file >> version;

Copy link
Member Author

Choose a reason for hiding this comment

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

dito

@favreau favreau merged commit f344e25 into BlueBrain:master Dec 19, 2017
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.

2 participants