blockchain , sdchain cpp sdk and demo

Dependencies:   EthernetInterface mbed-rtos mbed uniqueCPUID

Fork of bcsdk by SDchain C Plus Plus Team

Revision:
12:1b24ea479a59
Parent:
10:aabd720e632c
--- a/Account.h	Wed May 16 12:00:23 2018 +0000
+++ b/Account.h	Wed May 16 13:46:01 2018 +0000
@@ -12,6 +12,7 @@
 #include <map>
 #include "Key.h"
 #include "Object.h"
+#include "MbedJSONValue.h"
 using namespace std;
 
 class Account
@@ -36,9 +37,25 @@
 	void setQuorum(int newQuorum){this->quorum = newQuorum;};
 	int getQuorum(){return this->quorum;};
 
+	string getBalance();
+	string getWallet();
+
 	string createAccount();
 	string listAccounts();
-
+	string getParseMbedJson(MbedJSONValue& out, const char * pos);//ת»»³ÉMbedjson¸ñʽ
+	bool getRequestRet(MbedJSONValue& in);//»ñÈ¡½»Ò׳ɹ¦±êÖ¾
+	string getKeyValue(MbedJSONValue& in, string Key1, string Key2);//»ñÈ¡¼üÖµ
+	string getKeyValue(MbedJSONValue& in, string Key1);
+	bool getKeyValueBool(MbedJSONValue& in, string Key1, string Key2);
+	bool getKeyValueBool(MbedJSONValue& in, string Key1);
+	int getKeyValueInt(MbedJSONValue& in, string Key1, string Key2);
+	double getKeyValuedouble(MbedJSONValue& in, string Key1, string Key2);
+	int getLedger(MbedJSONValue& in);//»ñÈ¡Ledger³¤¶È
+	int getBalanceSize(MbedJSONValue& in,string Key1);//»ñÈ¡Óà¶î¶ÔÏóÊý×é´óС
+	int getBalanceSize(MbedJSONValue& in, string Key1,string Key2);
+	string getBalanceArray(MbedJSONValue& in, string Key1, int i, string Key2);//»ñÈ¡Óà¶îÊý¾Ý
+	string getBalanceArray(MbedJSONValue& in, string Key1, string Key2, int i, string Key3);
+	string getBalanceArray(MbedJSONValue& in, string Key1, string Key2, string Key3, int i, string Key4);
 protected:
 private:
 	Client client;
@@ -47,4 +64,4 @@
 
 };
 
-#endif
\ No newline at end of file
+#endif