WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
nt::Storage Class Reference

Public Types

typedef std::function< void(std::shared_ptr
< Message > msg,
NetworkConnection *only,
NetworkConnection *except)> 
QueueOutgoingFunc
 

Public Member Functions

void SetOutgoing (QueueOutgoingFunc queue_outgoing, bool server)
 
void ClearOutgoing ()
 
NT_Type GetEntryType (unsigned int id) const
 
void ProcessIncoming (std::shared_ptr< Message > msg, NetworkConnection *conn, std::weak_ptr< NetworkConnection > conn_weak)
 
void GetInitialAssignments (NetworkConnection &conn, std::vector< std::shared_ptr< Message >> *msgs)
 
void ApplyInitialAssignments (NetworkConnection &conn, llvm::ArrayRef< std::shared_ptr< Message >> msgs, bool new_server, std::vector< std::shared_ptr< Message >> *out_msgs)
 
std::shared_ptr< ValueGetEntryValue (StringRef name) const
 
bool SetDefaultEntryValue (StringRef name, std::shared_ptr< Value > value)
 
bool SetEntryValue (StringRef name, std::shared_ptr< Value > value)
 
void SetEntryTypeValue (StringRef name, std::shared_ptr< Value > value)
 
void SetEntryFlags (StringRef name, unsigned int flags)
 
unsigned int GetEntryFlags (StringRef name) const
 
void DeleteEntry (StringRef name)
 
void DeleteAllEntries ()
 
std::vector< EntryInfoGetEntryInfo (StringRef prefix, unsigned int types)
 
void NotifyEntries (StringRef prefix, EntryListenerCallback only=nullptr) const
 
const char * SavePersistent (StringRef filename, bool periodic) const
 
const char * LoadPersistent (StringRef filename, std::function< void(std::size_t line, const char *msg)> warn)
 
void SavePersistent (std::ostream &os, bool periodic) const
 
bool LoadPersistent (std::istream &is, std::function< void(std::size_t line, const char *msg)> warn)
 
void CreateRpc (StringRef name, StringRef def, RpcCallback callback)
 
void CreatePolledRpc (StringRef name, StringRef def)
 
unsigned int CallRpc (StringRef name, StringRef params)
 
bool GetRpcResult (bool blocking, unsigned int call_uid, std::string *result)
 
bool GetRpcResult (bool blocking, unsigned int call_uid, double time_out, std::string *result)
 
void CancelBlockingRpcResult (unsigned int call_uid)
 

Static Public Member Functions

static StorageGetInstance ()
 

Friends

class StorageTest
 

The documentation for this class was generated from the following files: