A minimal data object.
More...
#include <dxrecord.h>
|
void | waitOnState (const std::string &state="closed", const int timeout=std::numeric_limits< int >::max()) const |
|
void | clone_ (const std::string &dest_proj_id, const std::string &dest_folder) const |
|
std::string | dxid_ |
|
std::string | proj_ |
|
A minimal data object.
A record stores no additional data, nor does it have any additional routes beyond those common to all data objects. A record object can store data in its details (see DXDataObject::setDetails and DXDataObject::getDetails) and can thereby act as an object containing metadata and links to other objects.
dx::DXRecord::DXRecord |
( |
const char * |
dxid, |
|
|
const char * |
proj = NULL |
|
) |
| |
|
inline |
Creates a new DXRecord handler for the specified remote record object.
- Parameters
-
dxid | Record ID. |
proj | ID of the project in which to access the object (if NULL, then default workspace will be used). |
dx::DXRecord::DXRecord |
( |
const std::string & |
dxid, |
|
|
const std::string & |
proj = config::CURRENT_PROJECT() |
|
) |
| |
|
inline |
Creates a new DXRecord handler for the specified remote record object.
- Parameters
-
dxid | Record ID. |
proj | ID of the project in which to access the object. |
dx::DXRecord::DXRecord |
( |
const dx::JSON & |
dxlink | ) |
|
|
inline |
Creates a new DXRecord handler for the specified remote record object.
- Parameters
-
dxlink | A JSON representing a DNAnexus link. You may also use the extended form: {"$dnanexus_link": {"project": proj-id, "id": obj-id}}. |
DXRecord dx::DXRecord::clone |
( |
const std::string & |
dest_proj_id, |
|
|
const std::string & |
dest_folder = "/" |
|
) |
| const |
Clones the remote record into the specified project and folder.
- Parameters
-
dest_proj_id | ID of the project to which the object should be cloned. |
dest_folder | Folder route in which to put it in the destination project. |
- Returns
- New object handler with the associated project set to dest_proj_id.
void dx::DXRecord::create |
( |
const dx::JSON & |
data_obj_fields = dx::JSON(dx::JSON_OBJECT) | ) |
|
Creates a new remote record object. The handler is updated with the object ID.
- Parameters
-
data_obj_fields | JSON containing the optional fields with which to create the object ("project", "types", "details", "hidden", "name", "properties", "tags"), as provided to the /record/new API method. |
void dx::DXRecord::create |
( |
const DXRecord & |
init_from, |
|
|
const dx::JSON & |
data_obj_fields = dx::JSON(dx::JSON_OBJECT) |
|
) |
| |
Creates a new remote record object, initializing it from the specified record (and overriding with any values that are present in data_obj_fields). The handler is updated with the object ID.
- Parameters
-
init_from | a DXRecord from which to initialize the metadata |
data_obj_fields | JSON containing the optional fields with which to create the object ("project", "types", "details", "hidden", "name", "properties", "tags"), as provided to the /record/new API method. |
static DXRecord dx::DXRecord::newDXRecord |
( |
const dx::JSON & |
data_obj_fields = dx::JSON(dx::JSON_OBJECT) | ) |
|
|
static |
Creates a new remote record. Returns a handler for the new object.
- Parameters
-
data_obj_fields | JSON containing the optional fields with which to create the object ("project", "types", "details", "hidden", "name", "properties", "tags"), as provided to the /record/new API method. |
- Returns
- A DXRecord remote object handler.
static DXRecord dx::DXRecord::newDXRecord |
( |
const DXRecord & |
init_from, |
|
|
const dx::JSON & |
data_obj_fields = dx::JSON(dx::JSON_OBJECT) |
|
) |
| |
|
static |
Creates a new remote record object, initializing it from the specified record (and overriding with any values that are present in data_obj_fields). Returns a handler for the new remote object.
- Parameters
-
init_from | a DXRecord from which to initialize the metadata. |
data_obj_fields | JSON containing the optional fields with which to create the object ("project", "types", "details", "hidden", "name", "properties", "tags"), as provided to the /record/new API method. |
- Returns
- A DXRecord remote object handler.
The documentation for this class was generated from the following files:
- cpp/dxcpp/bindings/dxrecord.h
- cpp/dxcpp/bindings/dxrecord.cc