本文整理汇总了C++中Array::GetLength方法的典型用法代码示例。如果您正苦于以下问题:C++ Array::GetLength方法的具体用法?C++ Array::GetLength怎么用?C++ Array::GetLength使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Array
的用法示例。
在下文中一共展示了Array::GetLength方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
ListDeploymentInstancesResult& ListDeploymentInstancesResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("instancesList"))
{
Array<JsonValue> instancesListJsonList = jsonValue.GetArray("instancesList");
for(unsigned instancesListIndex = 0; instancesListIndex < instancesListJsonList.GetLength(); ++instancesListIndex)
{
m_instancesList.push_back(instancesListJsonList[instancesListIndex].AsString());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}
示例2:
DescribeEndpointsResult& DescribeEndpointsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Marker"))
{
m_marker = jsonValue.GetString("Marker");
}
if(jsonValue.ValueExists("Endpoints"))
{
Array<JsonView> endpointsJsonList = jsonValue.GetArray("Endpoints");
for(unsigned endpointsIndex = 0; endpointsIndex < endpointsJsonList.GetLength(); ++endpointsIndex)
{
m_endpoints.push_back(endpointsJsonList[endpointsIndex].AsObject());
}
}
return *this;
}
示例3:
DescribeDataSourcesResult& DescribeDataSourcesResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("Results"))
{
Array<JsonValue> resultsJsonList = jsonValue.GetArray("Results");
for(unsigned resultsIndex = 0; resultsIndex < resultsJsonList.GetLength(); ++resultsIndex)
{
m_results.push_back(resultsJsonList[resultsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}
示例4:
ListSuitesResult& ListSuitesResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("suites"))
{
Array<JsonValue> suitesJsonList = jsonValue.GetArray("suites");
for(unsigned suitesIndex = 0; suitesIndex < suitesJsonList.GetLength(); ++suitesIndex)
{
m_suites.push_back(suitesJsonList[suitesIndex].AsObject());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}
示例5:
GetEventSelectorsResult& GetEventSelectorsResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("TrailARN"))
{
m_trailARN = jsonValue.GetString("TrailARN");
}
if(jsonValue.ValueExists("EventSelectors"))
{
Array<JsonValue> eventSelectorsJsonList = jsonValue.GetArray("EventSelectors");
for(unsigned eventSelectorsIndex = 0; eventSelectorsIndex < eventSelectorsJsonList.GetLength(); ++eventSelectorsIndex)
{
m_eventSelectors.push_back(eventSelectorsJsonList[eventSelectorsIndex].AsObject());
}
}
return *this;
}
示例6:
ListUsersResult& ListUsersResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("Users"))
{
Array<JsonValue> usersJsonList = jsonValue.GetArray("Users");
for(unsigned usersIndex = 0; usersIndex < usersJsonList.GetLength(); ++usersIndex)
{
m_users.push_back(usersJsonList[usersIndex].AsObject());
}
}
if(jsonValue.ValueExists("PaginationToken"))
{
m_paginationToken = jsonValue.GetString("PaginationToken");
}
return *this;
}
示例7:
ListConstraintsForPortfolioResult& ListConstraintsForPortfolioResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("ConstraintDetails"))
{
Array<JsonValue> constraintDetailsJsonList = jsonValue.GetArray("ConstraintDetails");
for(unsigned constraintDetailsIndex = 0; constraintDetailsIndex < constraintDetailsJsonList.GetLength(); ++constraintDetailsIndex)
{
m_constraintDetails.push_back(constraintDetailsJsonList[constraintDetailsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextPageToken"))
{
m_nextPageToken = jsonValue.GetString("NextPageToken");
}
return *this;
}
示例8:
ListBuildsResult& ListBuildsResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("ids"))
{
Array<JsonValue> idsJsonList = jsonValue.GetArray("ids");
for(unsigned idsIndex = 0; idsIndex < idsJsonList.GetLength(); ++idsIndex)
{
m_ids.push_back(idsJsonList[idsIndex].AsString());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}
示例9:
GetRestApisResult& GetRestApisResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("position"))
{
m_position = jsonValue.GetString("position");
}
if(jsonValue.ValueExists("item"))
{
Array<JsonValue> itemJsonList = jsonValue.GetArray("item");
for(unsigned itemIndex = 0; itemIndex < itemJsonList.GetLength(); ++itemIndex)
{
m_items.push_back(itemJsonList[itemIndex].AsObject());
}
}
return *this;
}
示例10:
DescribeEffectiveInstanceAssociationsResult& DescribeEffectiveInstanceAssociationsResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("Associations"))
{
Array<JsonValue> associationsJsonList = jsonValue.GetArray("Associations");
for(unsigned associationsIndex = 0; associationsIndex < associationsJsonList.GetLength(); ++associationsIndex)
{
m_associations.push_back(associationsJsonList[associationsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}
示例11:
DescribeFleetCapacityResult& DescribeFleetCapacityResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("FleetCapacity"))
{
Array<JsonValue> fleetCapacityJsonList = jsonValue.GetArray("FleetCapacity");
for(unsigned fleetCapacityIndex = 0; fleetCapacityIndex < fleetCapacityJsonList.GetLength(); ++fleetCapacityIndex)
{
m_fleetCapacity.push_back(fleetCapacityJsonList[fleetCapacityIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}
示例12:
PutRecordsResult& PutRecordsResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("FailedRecordCount"))
{
m_failedRecordCount = jsonValue.GetInteger("FailedRecordCount");
}
if(jsonValue.ValueExists("Records"))
{
Array<JsonValue> recordsJsonList = jsonValue.GetArray("Records");
for(unsigned recordsIndex = 0; recordsIndex < recordsJsonList.GetLength(); ++recordsIndex)
{
m_records.push_back(recordsJsonList[recordsIndex].AsObject());
}
}
return *this;
}
示例13:
DescribeCommentsResult& DescribeCommentsResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("Comments"))
{
Array<JsonValue> commentsJsonList = jsonValue.GetArray("Comments");
for(unsigned commentsIndex = 0; commentsIndex < commentsJsonList.GetLength(); ++commentsIndex)
{
m_comments.push_back(commentsJsonList[commentsIndex].AsObject());
}
}
if(jsonValue.ValueExists("Marker"))
{
m_marker = jsonValue.GetString("Marker");
}
return *this;
}
示例14:
ListCertificatesResult& ListCertificatesResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("CertificateSummaryList"))
{
Array<JsonValue> certificateSummaryListJsonList = jsonValue.GetArray("CertificateSummaryList");
for(unsigned certificateSummaryListIndex = 0; certificateSummaryListIndex < certificateSummaryListJsonList.GetLength(); ++certificateSummaryListIndex)
{
m_certificateSummaryList.push_back(certificateSummaryListJsonList[certificateSummaryListIndex].AsObject());
}
}
return *this;
}
示例15:
ListPresetsResult& ListPresetsResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("Presets"))
{
Array<JsonValue> presetsJsonList = jsonValue.GetArray("Presets");
for(unsigned presetsIndex = 0; presetsIndex < presetsJsonList.GetLength(); ++presetsIndex)
{
m_presets.push_back(presetsJsonList[presetsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextPageToken"))
{
m_nextPageToken = jsonValue.GetString("NextPageToken");
}
return *this;
}