Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90393869
Book.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 06:56
Size
588 B
Mime Type
text/x-c++
Expires
Sun, Nov 3, 06:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22067777
Attached To
R7040 TinyXML2 application examples
Book.h
View Options
/*
* Book.h
*
* Created on: Jun 26, 2018
* Author: vachoux
*/
#ifndef SRC_BOOK_H_
#define SRC_BOOK_H_
#include "tinyxml2/tinyxml2.h"
#include <string>
class Book {
public:
Book(tinyxml2::XMLElement* p_book);
virtual ~Book() {}
void print();
private:
std::string id_;
std::string category_;
std::string author_;
std::string title_;
std::string lang_;
int year_;
int stock_;
float price_;
std::string currency_;
bool discount_;
double margin_;
bool bestseller_;
};
#endif /* SRC_BOOK_H_ */
Event Timeline
Log In to Comment