Comments (1)
-
Согласен, надо смотреть, какая фукциональность вообще нужна:
1.1. записывать/читать один год в разные файлы или же
1.2. считывать один и тот же юнион из файла несколько раз. Логичная потребность. Тогда:class Storage { Storage(Union& aunion, std::string fileName); void write (); void read(); };
1.3. можно даже сделать свободные функции:
void writeToAsnFile(const Union& aunion, std::string fileName); void readFromAsnFile(Union& aunion, std::string fileName);
-
Сериализовать однозначно только Union. Наш формат ASN.1 просто физически не может сохранить точку/множество.
from libgod.
Related Issues (14)
- build.sh doesn't build HOT 1
- desctructor for Union HOT 1
- change filename for Storage
- wrong output when use setparameters and setcriteria functions HOT 4
- storage::read doesn't work HOT 4
- storage::read/write throws exception basic_ios::clear in full filenames specified HOT 1
- segmentaion fault for null pointers in libgod::Point HOT 1
- if I pass pointers to arrays with larger size than dims, it works HOT 1
- libgod::Point should throw exception in case of equal ptr usage
- liggod::Set set1(<negative number>, num) doesn't thrown exception HOT 3
- add parameters inherit for libgod::Set and libgod::Uninon dflt consturctors HOT 2
- undefined reference to `pthread_getspecific'
- test_comparable failing with gcc-4.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libgod.