![]() |
Gorgon Game Engine
|
Stores list of files for data exchange. More...
Public Types | |
| enum | ExchangeAction { Move, Copy } |
Public Member Functions | |
| FileData (std::string file) | |
| FileData (std::vector< std::string > files={}) | |
| void | AddFile (std::string value) |
| Adds a new file to the list. More... | |
| std::vector< std::string >::iterator | begin () |
| To allow ranged based iteration. More... | |
| std::vector< std::string >::const_iterator | begin () const |
| To allow ranged based iteration. More... | |
| void | Clear () |
| Clears the file list. More... | |
| std::vector< std::string >::iterator | end () |
| To allow ranged based iteration. More... | |
| std::vector< std::string >::const_iterator | end () const |
| To allow ranged based iteration. More... | |
| int | GetSize () const |
| Returns the number of files in the list. More... | |
| virtual std::string | Name () const override |
| Should return the name of the data type. More... | |
| std::string | operator[] (int ind) const |
| Returns the file at the given index. More... | |
| void | RemoveFile (int ind) |
| Removes a file from the list. More... | |
| virtual std::string | Text () const override |
| Should return the textual representation of the data. A datatype can simply return its typename. More... | |
| virtual Resource::GID::Type | Type () const override |
| Should return the type id of the data. More... | |
Public Member Functions inherited from ExchangeData | |
| virtual | ~ExchangeData () |
Public Attributes | |
| ExchangeAction | Action |
Stores list of files for data exchange.
| enum ExchangeAction |
|
explicit |
|
explicit |
| void AddFile | ( | std::string | value | ) |
Adds a new file to the list.
| std::vector<std::string>::iterator begin | ( | ) |
To allow ranged based iteration.
| std::vector<std::string>::const_iterator begin | ( | ) | const |
To allow ranged based iteration.
| void Clear | ( | ) |
Clears the file list.
| std::vector<std::string>::iterator end | ( | ) |
To allow ranged based iteration.
| std::vector<std::string>::const_iterator end | ( | ) | const |
To allow ranged based iteration.
| int GetSize | ( | ) | const |
Returns the number of files in the list.
|
overridevirtual |
Should return the name of the data type.
Implements ExchangeData.
| std::string operator[] | ( | int | ind | ) | const |
Returns the file at the given index.
| void RemoveFile | ( | int | ind | ) |
Removes a file from the list.
|
overridevirtual |
Should return the textual representation of the data. A datatype can simply return its typename.
Reimplemented from ExchangeData.
References Gorgon::String::Join().
|
overridevirtual |
Should return the type id of the data.
Implements ExchangeData.
References Gorgon::Resource::GID::File.
| ExchangeAction Action |