53 #define Y_FILESCOUNT_INVALID (YAPI_INVALID_UINT) 54 #define Y_FREESPACE_INVALID (YAPI_INVALID_UINT) 70 #pragma option push -w-8022 90 virtual string get_name(
void);
92 virtual int get_size(
void);
94 virtual int get_crc(
void);
117 #pragma option push -w-8022 133 YFiles(
const string& func);
153 int get_filesCount(
void);
156 {
return this->get_filesCount(); }
165 int get_freeSpace(
void);
168 {
return this->get_freeSpace(); }
197 static YFiles* FindFiles(
string func);
215 virtual string sendCommand(
string command);
225 virtual int format_fs(
void);
240 virtual vector<YFileRecord> get_list(
string pattern);
251 virtual bool fileExist(
string filename);
262 virtual string download(
string pathname);
275 virtual int upload(
string pathname,
string content);
291 virtual int remove(
string pathname);
306 {
return this->nextFiles();}
317 static YFiles* FirstFiles(
void);
static YFiles * First(void)
void(* YFilesValueCallback)(YFiles *func, const string &functionValue)
#define YAPI_INVALID_UINT
virtual int _parseAttr(YJSONObject *json_val)
static YFiles * FindFiles(string func)
ROSLIB_DECL std::string command(const std::string &cmd)
static int upload(const char *hubserial, const char *subpath, const char *filename, u8 *data, u32 data_len, char *errmsg)
virtual int registerValueCallback(YFunctionValueCallback callback)
YFiles * yFirstFiles(void)
#define YOCTO_CLASS_EXPORT
static YFiles * Find(string func)
YFiles * yFindFiles(const string &func)
static YFiles * FirstFiles(void)
YFilesValueCallback _valueCallbackFiles
virtual int _invokeValueCallback(string value)