small stuff
This commit is contained in:
parent
f955cd9eee
commit
a7fe23c300
@ -1,35 +1,40 @@
|
|||||||
#include "FileSystemMessage.h"
|
#include "FileSystemMessage.h"
|
||||||
#include "../objectmanager/ObjectManagerIF.h"
|
#include "../objectmanager/ObjectManagerIF.h"
|
||||||
|
|
||||||
|
void FileSystemMessage::setCreateFileCommand(CommandMessage* message,
|
||||||
|
store_address_t storeId) {
|
||||||
|
message->setCommand(CREATE_FILE);
|
||||||
|
message->setParameter2(storeId.raw);
|
||||||
|
}
|
||||||
|
|
||||||
void FileSystemMessage::setDeleteFileCommand(
|
void FileSystemMessage::setDeleteFileCommand(
|
||||||
CommandMessage* message, store_address_t storageID) {
|
CommandMessage* message, store_address_t storeId) {
|
||||||
message->setCommand(DELETE_FILE);
|
message->setCommand(DELETE_FILE);
|
||||||
message->setParameter2(storageID.raw);
|
message->setParameter2(storeId.raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemMessage::setCreateDirectoryCommand(
|
void FileSystemMessage::setCreateDirectoryCommand(
|
||||||
CommandMessage* message, store_address_t storageID) {
|
CommandMessage* message, store_address_t storeId) {
|
||||||
message->setCommand(CREATE_DIRECTORY);
|
message->setCommand(CREATE_DIRECTORY);
|
||||||
message->setParameter2(storageID.raw);
|
message->setParameter2(storeId.raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemMessage::setDeleteDirectoryCommand(
|
void FileSystemMessage::setDeleteDirectoryCommand(
|
||||||
CommandMessage* message, store_address_t storageID) {
|
CommandMessage* message, store_address_t storeId) {
|
||||||
message->setCommand(DELETE_DIRECTORY);
|
message->setCommand(DELETE_DIRECTORY);
|
||||||
message->setParameter2(storageID.raw);
|
message->setParameter2(storeId.raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemMessage::setWriteCommand(CommandMessage* message,
|
void FileSystemMessage::setWriteCommand(CommandMessage* message,
|
||||||
store_address_t storageID) {
|
store_address_t storeId) {
|
||||||
message->setCommand(APPEND_TO_FILE);
|
message->setCommand(APPEND_TO_FILE);
|
||||||
message->setParameter2(storageID.raw);
|
message->setParameter2(storeId.raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemMessage::setReadCommand(CommandMessage* message,
|
void FileSystemMessage::setReadCommand(CommandMessage* message,
|
||||||
store_address_t storageID) {
|
store_address_t storeId) {
|
||||||
message->setCommand(READ_FROM_FILE);
|
message->setCommand(READ_FROM_FILE);
|
||||||
message->setParameter2(storageID.raw);
|
message->setParameter2(storeId.raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemMessage::setReadReply(CommandMessage* message,
|
void FileSystemMessage::setReadReply(CommandMessage* message,
|
||||||
@ -38,12 +43,6 @@ void FileSystemMessage::setReadReply(CommandMessage* message,
|
|||||||
message->setParameter2(storageID.raw);
|
message->setParameter2(storageID.raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemMessage::setCreateFileCommand(CommandMessage *message,
|
|
||||||
store_address_t storeId) {
|
|
||||||
message->setCommand(CREATE_FILE);
|
|
||||||
message->setParameter2(storeId.raw);
|
|
||||||
}
|
|
||||||
|
|
||||||
store_address_t FileSystemMessage::getStoreId(const CommandMessage* message) {
|
store_address_t FileSystemMessage::getStoreId(const CommandMessage* message) {
|
||||||
store_address_t temp;
|
store_address_t temp;
|
||||||
temp.raw = message->getParameter2();
|
temp.raw = message->getParameter2();
|
||||||
|
Loading…
Reference in New Issue
Block a user