IDA SDK
|
Directory tree specialization.
This is an abstract base class that represents 'file items' of our directory structure.
Public Attributes | |
uint32 | flags |
qstring | id |
Public Member Functions | |
dirspec_t (const char *nm=nullptr, uint32 f=0) | |
virtual bool | get_name (qstring *out, inode_t inode, uint32 name_flags=DTN_FULL_NAME)=0 |
get the entry name. More... | |
virtual inode_t | get_inode (const char *dirpath, const char *name)=0 |
get the entry inode in the specified directory More... | |
virtual qstring | get_attrs (inode_t inode) const =0 |
virtual bool | rename_inode (inode_t inode, const char *newname)=0 |
rename the entry More... | |
virtual void | unlink_inode (inode_t inode) |
event: unlinked an inode More... | |
bool | is_orderable () const |
Public Types | |
enum | { DSF_INODE_EA = 0x01 , DSF_PRIVRANGE = 0x02 , DSF_ORDERABLE = 0x04 } |
|
pure virtual |
get the entry name.
for example, the structure name
[out] | out | may be nullptr; in this case get_name can be used to validate an inode. |
inode | inode number of the entry | |
name_flags | how exactly the name should be retrieved. combination of bits for get_...name() methods bits |
|
pure virtual |
get the entry inode in the specified directory
dirpath | the absolute directory path with trailing slash |
name | the entry name in the directory |
|
pure virtual |
rename the entry
inode | |
newname |
|
inlinevirtual |
event: unlinked an inode
inode |