PRepr.cpp 9.68 KB
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
/***************************************
	Auteur : Pierre Aubert
	Mail : aubertp7@gmail.com
	Licence : CeCILL-C
****************************************/


#include "PRepr.h"

///Constructor of class PDimention
PDimention::PDimention(){
	
}

///Copy Constructor of class PDimention
/**	@param other : PDimention we want ot copy
*/
PDimention::PDimention(const PDimention & other){
	copyPDimention(other);
}

///Destructor of class PDimention
PDimention::~PDimention(){
	
}

///Operator = of class PDimention
/**	@param other : PDimention we want ot copy
 * 	@return copied class PDimention
*/
PDimention & PDimention::operator = (const PDimention & other){
	copyPDimention(other);
	return *this;
}

///Sets the name of the PDimention
/**	@param name : name of the PDimention
*/
void PDimention::setName(const std::string & name){
	p_name = name;
}

///Sets the value of the PDimention
/**	@param value : value of the PDimention
*/
void PDimention::setValue(const size_t & value){
	p_value = value;
}

///Sets the isValue of the PDimention
/**	@param isValue : isValue of the PDimention
*/
void PDimention::setIsValue(bool isValue){
	p_isValue = isValue;
}

///Gets the name of the PDimention
/**	@return name of the PDimention
*/
const std::string & PDimention::getName() const{
	return p_name;
}

///Gets the name of the PDimention
/**	@return name of the PDimention
*/
std::string & PDimention::getName(){
	return p_name;
}

///Gets the value of the PDimention
/**	@return value of the PDimention
*/
const size_t & PDimention::getValue() const{
	return p_value;
}

///Gets the value of the PDimention
/**	@return value of the PDimention
*/
size_t & PDimention::getValue(){
	return p_value;
}

///Gets the isValue of the PDimention
/**	@return isValue of the PDimention
*/
bool PDimention::getIsValue() const{
	return p_isValue;
}

///Gets the isValue of the PDimention
/**	@return isValue of the PDimention
*/
bool & PDimention::getIsValue(){
	return p_isValue;
}

///Copy Function of class PDimention
/**	@param other : PDimention we want ot copy
*/
void PDimention::copyPDimention(const PDimention & other){
	p_name = other.p_name;
	p_value = other.p_value;
	p_isValue = other.p_isValue;
}

///Constructor of class PAttribute
PAttribute::PAttribute(){
	
}

///Copy Constructor of class PAttribute
/**	@param other : PAttribute we want ot copy
*/
PAttribute::PAttribute(const PAttribute & other){
	copyPAttribute(other);
}

///Destructor of class PAttribute
PAttribute::~PAttribute(){
	
}

///Operator = of class PAttribute
/**	@param other : PAttribute we want ot copy
 * 	@return copied class PAttribute
*/
PAttribute & PAttribute::operator = (const PAttribute & other){
	copyPAttribute(other);
	return *this;
}

///Sets the name of the PAttribute
/**	@param name : name of the PAttribute
*/
void PAttribute::setName(const std::string & name){
	p_name = name;
}

///Sets the colName of the PAttribute
/**	@param colName : colName of the PAttribute
*/
void PAttribute::setColName(const std::string & colName){
	p_colName = colName;
}

///Sets the type of the PAttribute
/**	@param type : type of the PAttribute
*/
void PAttribute::setType(const std::string & type){
	p_type = type;
}

///Sets the docString of the PAttribute
/**	@param docString : docString of the PAttribute
*/
void PAttribute::setDocString(const std::string & docString){
	p_docString = docString;
}

///Sets the vecDim of the PAttribute
/**	@param vecDim : vecDim of the PAttribute
*/
Pierre Aubert's avatar
Pierre Aubert committed
165
void PAttribute::setVecDim(const std::vector<PDimention> & vecDim){
Pierre Aubert's avatar
Pierre Aubert committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
	p_vecDim = vecDim;
}

///Gets the name of the PAttribute
/**	@return name of the PAttribute
*/
const std::string & PAttribute::getName() const{
	return p_name;
}

///Gets the name of the PAttribute
/**	@return name of the PAttribute
*/
std::string & PAttribute::getName(){
	return p_name;
}

///Gets the colName of the PAttribute
/**	@return colName of the PAttribute
*/
const std::string & PAttribute::getColName() const{
	return p_colName;
}

///Gets the colName of the PAttribute
/**	@return colName of the PAttribute
*/
std::string & PAttribute::getColName(){
	return p_colName;
}

///Gets the type of the PAttribute
/**	@return type of the PAttribute
*/
const std::string & PAttribute::getType() const{
	return p_type;
}

///Gets the type of the PAttribute
/**	@return type of the PAttribute
*/
std::string & PAttribute::getType(){
	return p_type;
}

///Gets the docString of the PAttribute
/**	@return docString of the PAttribute
*/
const std::string & PAttribute::getDocString() const{
	return p_docString;
}

///Gets the docString of the PAttribute
/**	@return docString of the PAttribute
*/
std::string & PAttribute::getDocString(){
	return p_docString;
}

///Gets the vecDim of the PAttribute
/**	@return vecDim of the PAttribute
*/
Pierre Aubert's avatar
Pierre Aubert committed
228
const std::vector<PDimention> & PAttribute::getVecDim() const{
Pierre Aubert's avatar
Pierre Aubert committed
229 230 231 232 233 234
	return p_vecDim;
}

///Gets the vecDim of the PAttribute
/**	@return vecDim of the PAttribute
*/
Pierre Aubert's avatar
Pierre Aubert committed
235
std::vector<PDimention> & PAttribute::getVecDim(){
Pierre Aubert's avatar
Pierre Aubert committed
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
	return p_vecDim;
}

///Copy Function of class PAttribute
/**	@param other : PAttribute we want ot copy
*/
void PAttribute::copyPAttribute(const PAttribute & other){
	p_name = other.p_name;
	p_colName = other.p_colName;
	p_type = other.p_type;
	p_docString = other.p_docString;
	p_vecDim = other.p_vecDim;
}

///Constructor of class PTable
PTable::PTable(){
	
}

///Copy Constructor of class PTable
/**	@param other : PTable we want ot copy
*/
PTable::PTable(const PTable & other){
	copyPTable(other);
}

///Destructor of class PTable
PTable::~PTable(){
	
}

///Operator = of class PTable
/**	@param other : PTable we want ot copy
 * 	@return copied class PTable
*/
PTable & PTable::operator = (const PTable & other){
	copyPTable(other);
	return *this;
}

///Sets the name of the PTable
/**	@param name : name of the PTable
*/
void PTable::setName(const std::string & name){
	p_name = name;
}

///Sets the dataSetName of the PTable
/**	@param dataSetName : dataSetName of the PTable
*/
void PTable::setDataSetName(const std::string & dataSetName){
	p_dataSetName = dataSetName;
}

///Sets the varNbEntry of the PTable
/**	@param varNbEntry : varNbEntry of the PTable
*/
void PTable::setVarNbEntry(const std::string & varNbEntry){
	p_varNbEntry = varNbEntry;
}

Pierre Aubert's avatar
Pierre Aubert committed
297 298 299 300 301 302 303
///Sets the docString of the PTable
/**	@param docString : docString of the PTable
*/
void PTable::setDocString(const std::string & docString){
	p_docString = docString;
}

Pierre Aubert's avatar
Pierre Aubert committed
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
///Sets the vecAttribute of the PTable
/**	@param vecAttribute : vecAttribute of the PTable
*/
void PTable::setVecAttribute(const std::vector<PAttribute> & vecAttribute){
	p_vecAttribute = vecAttribute;
}

///Gets the name of the PTable
/**	@return name of the PTable
*/
const std::string & PTable::getName() const{
	return p_name;
}

///Gets the name of the PTable
/**	@return name of the PTable
*/
std::string & PTable::getName(){
	return p_name;
}

///Gets the dataSetName of the PTable
/**	@return dataSetName of the PTable
*/
const std::string & PTable::getDataSetName() const{
	return p_dataSetName;
}

///Gets the dataSetName of the PTable
/**	@return dataSetName of the PTable
*/
std::string & PTable::getDataSetName(){
	return p_dataSetName;
}

///Gets the varNbEntry of the PTable
/**	@return varNbEntry of the PTable
*/
const std::string & PTable::getVarNbEntry() const{
	return p_varNbEntry;
}

///Gets the varNbEntry of the PTable
/**	@return varNbEntry of the PTable
*/
std::string & PTable::getVarNbEntry(){
	return p_varNbEntry;
}

Pierre Aubert's avatar
Pierre Aubert committed
353 354 355 356 357 358 359 360 361 362 363 364 365 366
///Gets the docString of the PTable
/**	@return docString of the PTable
*/
const std::string & PTable::getDocString() const{
	return p_docString;
}

///Gets the docString of the PTable
/**	@return docString of the PTable
*/
std::string & PTable::getDocString(){
	return p_docString;
}

Pierre Aubert's avatar
Pierre Aubert committed
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387
///Gets the vecAttribute of the PTable
/**	@return vecAttribute of the PTable
*/
const std::vector<PAttribute> & PTable::getVecAttribute() const{
	return p_vecAttribute;
}

///Gets the vecAttribute of the PTable
/**	@return vecAttribute of the PTable
*/
std::vector<PAttribute> & PTable::getVecAttribute(){
	return p_vecAttribute;
}

///Copy Function of class PTable
/**	@param other : PTable we want ot copy
*/
void PTable::copyPTable(const PTable & other){
	p_name = other.p_name;
	p_dataSetName = other.p_dataSetName;
	p_varNbEntry = other.p_varNbEntry;
Pierre Aubert's avatar
Pierre Aubert committed
388
	p_docString = other.p_docString;
Pierre Aubert's avatar
Pierre Aubert committed
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467
	p_vecAttribute = other.p_vecAttribute;
}

///Constructor of class PSource
PSource::PSource(){
	
}

///Copy Constructor of class PSource
/**	@param other : PSource we want ot copy
*/
PSource::PSource(const PSource & other){
	copyPSource(other);
}

///Destructor of class PSource
PSource::~PSource(){
	
}

///Operator = of class PSource
/**	@param other : PSource we want ot copy
 * 	@return copied class PSource
*/
PSource & PSource::operator = (const PSource & other){
	copyPSource(other);
	return *this;
}

///Sets the name of the PSource
/**	@param name : name of the PSource
*/
void PSource::setName(const std::string & name){
	p_name = name;
}

///Sets the vecTable of the PSource
/**	@param vecTable : vecTable of the PSource
*/
void PSource::setVecTable(const std::vector<PTable> & vecTable){
	p_vecTable = vecTable;
}

///Gets the name of the PSource
/**	@return name of the PSource
*/
const std::string & PSource::getName() const{
	return p_name;
}

///Gets the name of the PSource
/**	@return name of the PSource
*/
std::string & PSource::getName(){
	return p_name;
}

///Gets the vecTable of the PSource
/**	@return vecTable of the PSource
*/
const std::vector<PTable> & PSource::getVecTable() const{
	return p_vecTable;
}

///Gets the vecTable of the PSource
/**	@return vecTable of the PSource
*/
std::vector<PTable> & PSource::getVecTable(){
	return p_vecTable;
}

///Copy Function of class PSource
/**	@param other : PSource we want ot copy
*/
void PSource::copyPSource(const PSource & other){
	p_name = other.p_name;
	p_vecTable = other.p_vecTable;
}