File
/**
* @brief A C family file.
*/
Inherit from FileDO
Primary key: oid: int
schema File extends FileDO {
@primary oid: int,
relative_path: string,
extension: string,
name: string,
program_oid: int
}
File::getRelativePath
/**
* @brief gets the relative path of this element.
* @return string
*/
- Parameter
self
:File
- Return
string
pub fn getRelativePath(self: File) -> string;
File::getProgram
/**
* @brief gets the program root of the file element.
* @return Program
*/
pub fn getProgram(self: File) -> Program;
File::__all__
Data constraint method.
pub fn __all__(db: CfamilyDB) -> *File;
File::getProgramOid
/**
* @brief gets the program oid of this element.
* @return int
*/
- Parameter
self
:File
- Return
int
pub fn getProgramOid(self: File) -> int;
File::getExtension
/**
* @brief gets the extension of this element.
* @return string
*/
- Parameter
self
:File
- Return
string
pub fn getExtension(self: File) -> string;
File::getName
/**
* @brief gets the name of this element.
* @return string
*/
- Parameter
self
:File
- Return
string
pub fn getName(self: File) -> string;