OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::DataTypes::List Class Reference

Represents OTX List DataType. More...

#include <List.h>

Inheritance diagram for OpenTestSystem::Otx::Runtime::Api::DataTypes::List:
Inheritance graph

Public Member Functions

void Add (std::shared_ptr< Object > item)
 Adds an item. More...
 
std::shared_ptr< Object > & operator[] (long index)
 Gets or sets value at index. More...
 
size_t Size () const
 Gets List size. More...
 
std::string ToLiteralString () const
 Gets literal string. More...
 

Detailed Description

Represents OTX List DataType.

Member Function Documentation

◆ Add()

void OpenTestSystem::Otx::Runtime::Api::DataTypes::List::Add ( std::shared_ptr< Object item)

Adds an item.

Parameters
itemItem which will be added.

◆ operator[]()

std::shared_ptr<Object>& OpenTestSystem::Otx::Runtime::Api::DataTypes::List::operator[] ( long  index)

Gets or sets value at index.

Returns
Index of value will be get or set.

◆ Size()

size_t OpenTestSystem::Otx::Runtime::Api::DataTypes::List::Size ( ) const

Gets List size.

Returns
Number of items.

◆ ToLiteralString()

std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::List::ToLiteralString ( ) const
virtual

Gets literal string.

Returns
Literal string.

Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.


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