#include <ItemFileIO.h>
|
| | ~ItemFileIO () |
| |
| bool | isFormat (const std::string &id) const |
| |
| int | api () const |
| |
| void | setApi (int apiSet) |
| |
| bool | hasApi (int api) const |
| |
| void | setCaption (const std::string &caption) |
| |
| const std::string & | caption () const |
| |
| void | setFileTypeCaption (const std::string &caption) |
| |
| const std::string & | fileTypeCaption () const |
| |
| void | addFormatIdAlias (const std::string &formatId) |
| |
| void | addExtensions (const std::vector< std::string > &extensions) |
| |
| void | setExtensionFunction (std::function< std::string()> func) |
| |
| std::vector< std::string > | extensions () const |
| |
| void | setInterfaceLevel (InterfaceLevel level) |
| |
| int | interfaceLevel () const |
| |
| virtual Item * | createItem ()=0 |
| |
| void | setInvocationType (int type) |
| |
| Item * | loadItem (const std::string &filename, Item *parentItem=nullptr, bool doAddition=true, Item *nextItem=nullptr, const Mapping *options=nullptr) |
| |
| bool | loadItem (Item *item, const std::string &filename, Item *parentItem=nullptr, bool doAddition=true, Item *nextItem=nullptr, const Mapping *options=nullptr) |
| |
| bool | saveItem (Item *item, const std::string &filename, const Mapping *options=nullptr) |
| |
| virtual void | resetOptions () |
| |
| virtual void | storeOptions (Mapping *options) |
| |
| virtual bool | restoreOptions (const Mapping *options) |
| |
| virtual QWidget * | getOptionPanelForLoading () |
| |
| virtual void | fetchOptionPanelForLoading () |
| |
| virtual QWidget * | getOptionPanelForSaving (Item *item) |
| |
| virtual void | fetchOptionPanelForSaving () |
| |
| Item * | parentItem () |
| |
| int | invocationType () const |
| |
| bool | isRegisteredForSingletonItem () const |
| |
| Item * | findSingletonItemInstance () const |
| |
| void | setItemClassInfo (Referenced *info) |
| |
| const Referenced * | itemClassInfo () const |
| |
| virtual | ~Referenced () |
| |
◆ API
| Enumerator |
|---|
| Load | |
| Options | |
| OptionPanelForLoading | |
| Save | |
| OptionPanelForSaving | |
◆ InterfaceLevel
| Enumerator |
|---|
| Standard | |
| Conversion | |
| Internal | |
◆ InvocationType
| Enumerator |
|---|
| Direct | |
| Dialog | |
| DragAndDrop | |
◆ ~ItemFileIO()
| ItemFileIO::~ItemFileIO |
( |
| ) |
|
◆ ItemFileIO() [1/3]
| ItemFileIO::ItemFileIO |
( |
const std::string & |
formatId, |
|
|
int |
api |
|
) |
| |
|
protected |
◆ ItemFileIO() [2/3]
◆ ItemFileIO() [3/3]
| ItemFileIO::ItemFileIO |
( |
| ) |
|
|
protected |
◆ addExtensions()
| void ItemFileIO::addExtensions |
( |
const std::vector< std::string > & |
extensions | ) |
|
◆ addFormatIdAlias()
| void ItemFileIO::addFormatIdAlias |
( |
const std::string & |
formatId | ) |
|
◆ api()
| int ItemFileIO::api |
( |
| ) |
const |
◆ caption()
| const std::string & ItemFileIO::caption |
( |
| ) |
const |
◆ copyFrom()
| void ItemFileIO::copyFrom |
( |
const ItemFileIO & |
org | ) |
|
|
protected |
◆ createItem()
| virtual Item* cnoid::ItemFileIO::createItem |
( |
| ) |
|
|
pure virtual |
◆ extensions()
| std::vector< std::string > ItemFileIO::extensions |
( |
| ) |
const |
◆ fetchOptionPanelForLoading()
| void ItemFileIO::fetchOptionPanelForLoading |
( |
| ) |
|
|
virtual |
◆ fetchOptionPanelForSaving()
| void ItemFileIO::fetchOptionPanelForSaving |
( |
| ) |
|
|
virtual |
◆ fileTypeCaption()
| const std::string & ItemFileIO::fileTypeCaption |
( |
| ) |
const |
◆ findSingletonItemInstance()
| Item * ItemFileIO::findSingletonItemInstance |
( |
| ) |
const |
◆ getOptionPanelForLoading()
| QWidget * ItemFileIO::getOptionPanelForLoading |
( |
| ) |
|
|
virtual |
◆ getOptionPanelForSaving()
| QWidget * ItemFileIO::getOptionPanelForSaving |
( |
Item * |
item | ) |
|
|
virtual |
◆ hasApi()
| bool ItemFileIO::hasApi |
( |
int |
api | ) |
const |
◆ interfaceLevel()
| int ItemFileIO::interfaceLevel |
( |
| ) |
const |
◆ invocationType()
| int ItemFileIO::invocationType |
( |
| ) |
const |
◆ isFormat()
| bool ItemFileIO::isFormat |
( |
const std::string & |
id | ) |
const |
◆ isRegisteredForSingletonItem()
| bool ItemFileIO::isRegisteredForSingletonItem |
( |
| ) |
const |
◆ itemClassInfo()
| const Referenced * ItemFileIO::itemClassInfo |
( |
| ) |
const |
◆ load()
| bool ItemFileIO::load |
( |
Item * |
item, |
|
|
const std::string & |
filename |
|
) |
| |
|
protectedvirtual |
◆ loadItem() [1/2]
| Item * ItemFileIO::loadItem |
( |
const std::string & |
filename, |
|
|
Item * |
parentItem = nullptr, |
|
|
bool |
doAddition = true, |
|
|
Item * |
nextItem = nullptr, |
|
|
const Mapping * |
options = nullptr |
|
) |
| |
◆ loadItem() [2/2]
| bool ItemFileIO::loadItem |
( |
Item * |
item, |
|
|
const std::string & |
filename, |
|
|
Item * |
parentItem = nullptr, |
|
|
bool |
doAddition = true, |
|
|
Item * |
nextItem = nullptr, |
|
|
const Mapping * |
options = nullptr |
|
) |
| |
◆ os()
| std::ostream & ItemFileIO::os |
( |
| ) |
|
|
protected |
◆ parentItem()
| Item * ItemFileIO::parentItem |
( |
| ) |
|
◆ putError()
| void ItemFileIO::putError |
( |
const std::string & |
message | ) |
|
|
protected |
◆ putWarning()
| void ItemFileIO::putWarning |
( |
const std::string & |
message | ) |
|
|
protected |
◆ resetOptions()
| void ItemFileIO::resetOptions |
( |
| ) |
|
|
virtual |
◆ restoreOptions()
| bool ItemFileIO::restoreOptions |
( |
const Mapping * |
options | ) |
|
|
virtual |
◆ save()
| bool ItemFileIO::save |
( |
Item * |
item, |
|
|
const std::string & |
filename |
|
) |
| |
|
protectedvirtual |
◆ saveItem()
| bool ItemFileIO::saveItem |
( |
Item * |
item, |
|
|
const std::string & |
filename, |
|
|
const Mapping * |
options = nullptr |
|
) |
| |
◆ separateExtensions()
| std::vector< std::string > ItemFileIO::separateExtensions |
( |
const std::string & |
multiExtString | ) |
|
|
static |
◆ setActuallyLoadedItem()
| void ItemFileIO::setActuallyLoadedItem |
( |
Item * |
item | ) |
|
|
protected |
When the file is loaded as a composite item tree and the item that actually loads the file is different from the top item, the following function must be called with the corresponding item.
◆ setApi()
| void ItemFileIO::setApi |
( |
int |
apiSet | ) |
|
◆ setCaption()
| void ItemFileIO::setCaption |
( |
const std::string & |
caption | ) |
|
◆ setExtension()
| void ItemFileIO::setExtension |
( |
const std::string & |
extension | ) |
|
|
protected |
◆ setExtensionFunction()
| void ItemFileIO::setExtensionFunction |
( |
std::function< std::string()> |
func | ) |
|
◆ setExtensions()
| void ItemFileIO::setExtensions |
( |
const std::vector< std::string > & |
extensions | ) |
|
|
protected |
◆ setFileTypeCaption()
| void ItemFileIO::setFileTypeCaption |
( |
const std::string & |
caption | ) |
|
◆ setInterfaceLevel()
◆ setInvocationType()
| void ItemFileIO::setInvocationType |
( |
int |
type | ) |
|
◆ setItemClassInfo()
| void ItemFileIO::setItemClassInfo |
( |
Referenced * |
info | ) |
|
◆ storeOptions()
| void ItemFileIO::storeOptions |
( |
Mapping * |
options | ) |
|
|
virtual |
◆ ItemFileDialog
◆ ItemFileIoExtenderBase
◆ ItemManager
The documentation for this class was generated from the following files: