Samchon Framework for CPP  1.0.0
samchon::library::FTByteFile Class Reference

A binary file. More...

#include <FTByteFile.hpp>

Collaboration diagram for samchon::library::FTByteFile:

Public Member Functions

 FTByteFile (FTFolder *)
 Construct from parent folder. More...
 
auto getData () -> ByteArray
 Get binaray data of the file. More...
 
- Public Member Functions inherited from samchon::library::FTFile
 FTFile (FTFolder *)
 Construct from parent folder. More...
 
auto getExtension () const -> std::string
 Get extension. More...
 
virtual auto toXML () const -> std::shared_ptr< library::XML >
 Get an XML object represents the Entity. More...
 
- Public Member Functions inherited from samchon::library::FTInstance
 FTInstance (FTFolder *)
 Construct from parent folder. More...
 
virtual auto key () const -> std::string
 Get a key that can identify the Entity uniquely. More...
 
auto getUID () const -> int
 Get uid. More...
 
auto getParent () const -> FTFolder *
 Get parent folder. More...
 
auto getName () const -> std::string
 Get name. More...
 
auto getComment () const -> std::string
 Get comment. More...
 
- Public Member Functions inherited from samchon::protocol::Entity
 Entity ()
 Default Constructor. More...
 
virtual void construct (std::shared_ptr< library::XML >)=0
 Construct data of the Entity from an XML object. More...
 

Protected Attributes

ByteArray data
 Binary data of the file. More...
 
- Protected Attributes inherited from samchon::library::FTFile
std::string extension
 An extension of a file. More...
 
- Protected Attributes inherited from samchon::library::FTInstance
FTFolderparent
 Parent folder containing the instance. More...
 
int uid
 Key, an unique id of file. More...
 
std::string name
 Name of the file. More...
 
std::string comment
 Comment of the file. More...
 

Additional Inherited Members

- Protected Member Functions inherited from samchon::library::FTInstance
virtual auto TAG () const -> std::string
 A tag name when represented by XML. More...
 

Detailed Description

A binary file.

A file having data as binary.

library_file_tree.png
See also
samchon::library
Author
Jeongho Nam http://samchon.org

Definition at line 22 of file FTByteFile.hpp.

Constructor & Destructor Documentation

samchon::library::FTByteFile::FTByteFile ( FTFolder )

Construct from parent folder.

Parameters
folderBelonged folder

Member Function Documentation

auto samchon::library::FTByteFile::getData ( ) -> ByteArray

Get binaray data of the file.

Member Data Documentation

ByteArray samchon::library::FTByteFile::data
protected

Binary data of the file.

Definition at line 32 of file FTByteFile.hpp.


The documentation for this class was generated from the following file: