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

A text file. More...

#include <FTTextFile.hpp>

Collaboration diagram for samchon::library::FTTextFile:

Public Member Functions

 FTTextFile (FTFolder *)
 Construct from parent folder. More...
 
auto getData () const -> std::string
 Get string content. 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

std::string data
 Text recorded in 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 text file.

A file having data as text.

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

Definition at line 20 of file FTTextFile.hpp.

Constructor & Destructor Documentation

samchon::library::FTTextFile::FTTextFile ( FTFolder )

Construct from parent folder.

Parameters
folderBelonged folder

Member Function Documentation

auto samchon::library::FTTextFile::getData ( ) const -> std::string

Get string content.

Member Data Documentation

std::string samchon::library::FTTextFile::data
protected

Text recorded in the file.

Definition at line 30 of file FTTextFile.hpp.


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