#include "msg/Message.h"
#include "include/filepath.h"
-#include <vector>
#include <string>
-using namespace std;
class MDiscover : public Message {
snapid_t get_snapid() { return snapid; }
filepath& get_want() { return want; }
- const string& get_dentry(int n) { return want[n]; }
+ const std::string& get_dentry(int n) { return want[n]; }
bool wants_base_dir() { return want_base_dir; }
bool wants_xlocked() { return want_xlocked; }
#include "msg/Message.h"
#include "include/filepath.h"
-#include <vector>
#include <string>
-using namespace std;
* they are false if there is no returned data, ie the first group is empty.
*
* we also return errors:
- * error_flag_dn(string) - the specified dentry dne
+ * error_flag_dn(std::string) - the specified dentry dne
* error_flag_dir - the last item wasn't a dir, so we couldn't continue.
*
* and sometimes,
// and the response
bool flag_error_dn;
bool flag_error_dir;
- string error_dentry; // dentry that was not found (to trigger waiters on asker)
+ std::string error_dentry; // dentry that was not found (to trigger waiters on asker)
bool unsolicited;
__s32 dir_auth_hint;
bool is_flag_error_dn() { return flag_error_dn; }
bool is_flag_error_dir() { return flag_error_dir; }
- string& get_error_dentry() { return error_dentry; }
+ std::string& get_error_dentry() { return error_dentry; }
int get_starts_with() { return starts_with; }
}
// void set_flag_forward() { flag_forward = true; }
- void set_flag_error_dn(const string& dn) {
+ void set_flag_error_dn(const std::string& dn) {
flag_error_dn = true;
error_dentry = dn;
}
void set_dir_auth_hint(int a) {
dir_auth_hint = a;
}
- void set_error_dentry(const string& dn) {
+ void set_error_dentry(const std::string& dn) {
error_dentry = dn;
}